Interface ISmartArtNodes
Represents a collection of nodes within a SmartArt diagram.
Inherited Members
Namespace: Syncfusion.Presentation
Assembly: Syncfusion.Presentation.Base.dll
Syntax
public interface ISmartArtNodes : IEnumerable<ISmartArtNode>, IEnumerable
Properties
Count
Gets the number of nodes contained in the SmartArt node collection. Read-only.
Declaration
int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Item[Int32]
Gets a node at the specified index of a SmartArt node collection. Read-only.
Declaration
ISmartArtNode this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Determines the index of the SmartArt node. |
Property Value
Type | Description |
---|---|
ISmartArtNode | Returns an ISmartArtNode instance. |
Methods
Add()
Adds a new SmartArt node at the end of the SmartArt node collection.
Declaration
ISmartArtNode Add()
Returns
Type | Description |
---|---|
ISmartArtNode | Returns an ISmartArtNode instance that represents the new SmartArt diagram. |
Clear()
Removes all the nodes from the SmartArt.
Declaration
void Clear()
IndexOf(ISmartArtNode)
Returns the first occurrence of a specified node from the SmartArt node collection.
Declaration
int IndexOf(ISmartArtNode smartArtNode)
Parameters
Type | Name | Description |
---|---|---|
ISmartArtNode | smartArtNode | The ISmartArtNode instance to locate in the collection. |
Returns
Type | Description |
---|---|
System.Int32 | Returns the zero-based index of the first occurrence of SmartArt node within the collection, if found; otherwise, �1. |
Remove(ISmartArtNode)
Removes the first occurrence of a specified node from the SmartArt node collection.
Declaration
bool Remove(ISmartArtNode smartArtNode)
Parameters
Type | Name | Description |
---|---|---|
ISmartArtNode | smartArtNode | The SmartArt node to be removed from the collection. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the specified SmartArt node is removed from the node collection otherwise returns false. |
RemoveAt(Int32)
Removes the node at the specified index of SmartArt node collection.
Declaration
void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the element to be removed. |