Interface IOfficeSmartArtTextParts
Represents a collection of IOfficeSmartArtTextPart instances in a paragraph.
Namespace: Syncfusion.Office
Assembly: Syncfusion.Compression.NET.dll
Syntax
public interface IOfficeSmartArtTextParts : IEnumerable<IOfficeSmartArtTextPart>, IEnumerable
Properties
Count
Gets the number of elements in the SmartArt text part collection. Read-only.
Declaration
int Count { get; }
Property Value
Type |
---|
System.Int32 |
Item[Int32]
Gets a IOfficeSmartArtTextPart instance at the specified index of the collection. Read-only.
Declaration
IOfficeSmartArtTextPart this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Determines the index of the SmartArt text part. |
Property Value
Type | Description |
---|---|
IOfficeSmartArtTextPart | Returns an IOfficeSmartArtTextPart instance. |
Methods
Add(String)
Adds a new text part to the SmartArt paragraph.
Declaration
IOfficeSmartArtTextPart Add(string text = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text to be added to the text part. If unspecified, the text part will be created without any text. |
Returns
Type | Description |
---|---|
IOfficeSmartArtTextPart | An instance of IOfficeSmartArtTextPart representing the added text part. |
Clear()
Removes all the IOfficeSmartArtTextPart instances from the SmartArt text part collection.
Declaration
void Clear()
Contains(String)
Returns a boolean value indicating whether the specified text content is in the SmartArt text part collection.
Declaration
bool Contains(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text to locate in the text part collection. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the text is found in the collection; otherwise, false. |
IndexOf(IOfficeSmartArtTextPart)
Returns the zero-based index of the first occurrence of the IOfficeSmartArtTextPart instance within the collection.
Declaration
int IndexOf(IOfficeSmartArtTextPart textPart)
Parameters
Type | Name | Description |
---|---|---|
IOfficeSmartArtTextPart | textPart | The IOfficeSmartArtTextPart instance to locate in the collection. |
Returns
Type | Description |
---|---|
System.Int32 | Returns the zero-based index of the first occurrence of IOfficeSmartArtTextPart within the collection, if found; otherwise, -1. |
Remove(IOfficeSmartArtTextPart)
Removes the first occurrence of a specified IOfficeSmartArtTextPart instance from the SmartArt text part collection.
Declaration
void Remove(IOfficeSmartArtTextPart textPart)
Parameters
Type | Name | Description |
---|---|---|
IOfficeSmartArtTextPart | textPart | Represents the IOfficeSmartArtTextPart instance to remove. |
RemoveAt(Int32)
Removes the IOfficeSmartArtTextPart instance at the specified index of the SmartArt text part collection.
Declaration
void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the SmartArt text part to be removed. |