Interface IOfficeSmartArtParagraphs
Represents a collection of IOfficeSmartArtParagraph instances in a IOfficeSmartArtTextBody.
Inherited Members
Namespace: Syncfusion.Office
Assembly: Syncfusion.Compression.Base.dll
Syntax
public interface IOfficeSmartArtParagraphs : IEnumerable<IOfficeSmartArtParagraph>, IEnumerable
Properties
Count
Gets the number of elements in the paragraph collection. Read-only.
Declaration
int Count { get; }
Property Value
Type |
---|
System.Int32 |
Item[Int32]
Gets a IOfficeSmartArtParagraph instance at the specified index from the collection. Read-only.
Declaration
IOfficeSmartArtParagraph this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Determines the index of the text part. |
Property Value
Type | Description |
---|---|
IOfficeSmartArtParagraph | Returns an IOfficeSmartArtParagraph instance. |
Methods
Add(String)
Adds a new paragraph at the end of the paragraph collection.
Declaration
IOfficeSmartArtParagraph Add(string text = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text to be added to the paragraph. If unspecified, the paragraph will be created without any text. |
Returns
Type | Description |
---|---|
IOfficeSmartArtParagraph | An instance of IOfficeSmartArtParagraph representing the added paragraph. |
Clear()
Removes all the elements from the paragraph collection.
Declaration
void Clear()
IndexOf(IOfficeSmartArtParagraph)
Returns the zero-based index of the first occurrence of the IOfficeSmartArtParagraph instance within the collection.
Declaration
int IndexOf(IOfficeSmartArtParagraph paragraph)
Parameters
Type | Name | Description |
---|---|---|
IOfficeSmartArtParagraph | paragraph | The IOfficeSmartArtParagraph instance to locate in the collection. |
Returns
Type | Description |
---|---|
System.Int32 | Returns the zero-based index of the first occurrence of the paragraph within the collection, if found; otherwise, –1. |
Insert(Int32, IOfficeSmartArtParagraph)
Inserts a specific paragraph at the specified location in the paragraph collection.
Declaration
void Insert(int index, IOfficeSmartArtParagraph paragraph)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which the paragraph should be inserted. |
IOfficeSmartArtParagraph | paragraph | The IOfficeSmartArtParagraph instance to insert. |
Remove(IOfficeSmartArtParagraph)
Removes the first occurrence of a specified IOfficeSmartArtParagraph instance from the paragraph collection.
Declaration
void Remove(IOfficeSmartArtParagraph paragraph)
Parameters
Type | Name | Description |
---|---|---|
IOfficeSmartArtParagraph | paragraph | The paragraph instance to be removed from the collection. |
RemoveAt(Int32)
Removes the IOfficeSmartArtParagraph instance at the specified index of the paragraph collection.
Declaration
void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the element to be removed. |