• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class SmartArtNode

Represents the smart art node used by the presentation model.

Inheritance
object
SmartArtNode
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Presentation.Drawing
Assembly: DRIT.Presentation.dll
Syntax
public sealed class SmartArtNode

Properties

ChildNodes

Gets the collection of child nodes associated with this object.

Declaration
public IReadOnlyList<SmartArtNode> ChildNodes { get; }
Property Value
Type Description
IReadOnlyList<SmartArtNode>

Index

Gets or sets the index associated with this object.

Declaration
public int Index { get; }
Property Value
Type Description
int

Level

Gets the depth of this node in the SmartArt tree. Root nodes have level 0; their children have level 1; etc.

Declaration
public int Level { get; }
Property Value
Type Description
int

ModelId

Gets the model id associated with this object.

Declaration
public string ModelId { get; }
Property Value
Type Description
string

NodeType

Gets or sets the node type text.

Declaration
public string NodeType { get; }
Property Value
Type Description
string

ParentNode

Gets or sets the parent node associated with this object.

Declaration
public SmartArtNode ParentNode { get; }
Property Value
Type Description
SmartArtNode

Text

Gets or sets the text text.

Declaration
public string Text { get; set; }
Property Value
Type Description
string

Methods

AddChild(string, string)

Adds the child to this smart art node.

Declaration
public SmartArtNode AddChild(string text, string nodeType = null)
Parameters
Type Name Description
string text

The text supplied to this operation.

string nodeType

The node type supplied to this operation.

Returns
Type Description
SmartArtNode

The newly added child.

MoveTo(SmartArtNode, int)

Handles move to for this smart art node.

Declaration
public void MoveTo(SmartArtNode newParent, int insertionIndex = -1)
Parameters
Type Name Description
SmartArtNode newParent

The new parent supplied to this operation.

int insertionIndex

The insertion index supplied to this operation.

RemoveChild(SmartArtNode)

Removes the child from this smart art node.

Declaration
public bool RemoveChild(SmartArtNode child)
Parameters
Type Name Description
SmartArtNode child

The child supplied to this operation.

Returns
Type Description
bool

true if the operation succeeds; otherwise, false.

ReorderChild(int, int)

Handles reorder child for this smart art node.

Declaration
public void ReorderChild(int currentIndex, int newIndex)
Parameters
Type Name Description
int currentIndex

The current index supplied to this operation.

int newIndex

The new index supplied to this operation.

Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX