Class SmartArtNode
Represents one node in a document SmartArt tree.
Assembly: DRIT.Document.dll
Syntax
public sealed class SmartArtNode
Properties
ChildNodes
Gets the child nodes in diagram order.
Declaration
public IReadOnlyList<SmartArtNode> ChildNodes { get; }
Property Value
Index
Gets the flat node index.
Declaration
public int Index { get; }
Property Value
Level
Gets the node depth, where root nodes have level zero.
Declaration
public int Level { get; }
Property Value
ModelId
Gets the stable SmartArt model identifier.
Declaration
public string ModelId { get; }
Property Value
NodeType
Gets the diagram point type.
Declaration
public string NodeType { get; }
Property Value
ParentNode
Gets the parent node, or null for a root node.
Declaration
public SmartArtNode ParentNode { get; }
Property Value
Text
Gets or sets the node text and persists the text edit to the document.
Declaration
public string Text { get; set; }
Property Value
Methods
AddChild(string, string)
Adds a child node and persists the structural edit.
Declaration
public SmartArtNode AddChild(string text, string nodeType = null)
Parameters
Returns
MoveTo(SmartArtNode, int)
Moves this node to another parent and persists the structural edit.
Declaration
public void MoveTo(SmartArtNode newParent, int insertionIndex = -1)
Parameters
RemoveChild(SmartArtNode)
Removes a child node and persists the structural edit.
Declaration
public bool RemoveChild(SmartArtNode child)
Parameters
Returns
ReorderChild(int, int)
Reorders a child within this node and persists the structural edit.
Declaration
public void ReorderChild(int currentIndex, int newIndex)
Parameters
| Type |
Name |
Description |
| int |
currentIndex |
|
| int |
newIndex |
|