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

Class SmartArtNode

Represents one node in a document SmartArt tree.

Inheritance
object
SmartArtNode
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Document.Drawing
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
Type Description
IReadOnlyList<SmartArtNode>

Index

Gets the flat node index.

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

Level

Gets the node depth, where root nodes have level zero.

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

ModelId

Gets the stable SmartArt model identifier.

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

NodeType

Gets the diagram point type.

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

ParentNode

Gets the parent node, or null for a root node.

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

Text

Gets or sets the node text and persists the text edit to the document.

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

Methods

AddChild(string, string)

Adds a child node and persists the structural edit.

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

MoveTo(SmartArtNode, int)

Moves this node to another parent and persists the structural edit.

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

RemoveChild(SmartArtNode)

Removes a child node and persists the structural edit.

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

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
Back to top

DR-IT Software documentation

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

Generated by DocFX