Class ParagraphItemCollection
Represents the collection of ParagraphItem.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.DocIO.DLS
Assembly: Syncfusion.DocIO.Base.dll
Syntax
public class ParagraphItemCollection : EntityCollection, IXDLSSerializableCollection, IEntityCollectionBase, ICollectionBase, IEnumerable
Constructors
ParagraphItemCollection(WordDocument)
Initializes a new instance of the ParagraphItemCollection class with the specified WordDocument instance.
Declaration
public ParagraphItemCollection(WordDocument doc)
Parameters
Type | Name | Description |
---|---|---|
WordDocument | doc | The WordDocument instance. |
Properties
Item[Int32]
Gets the ParagraphItem at the specified index from the collection. Read-only.
Declaration
public ParagraphItem this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the paragraph item to get from the collection. |
Property Value
Type | Description |
---|---|
ParagraphItem | The ParagraphItem at the specified index. |
OwnerParagraph
Gets the owner paragraph of this paragraph item. Read-only.
Declaration
protected WParagraph OwnerParagraph { get; }
Property Value
Type | Description |
---|---|
WParagraph | The owner paragraph. |
TypesOfElement
Gets the type of the elements present in the collection.
Declaration
protected override Type[] TypesOfElement { get; }
Property Value
Type | Description |
---|---|
System.Type[] | The System.Type collection that contains the types of the elements. |
Overrides
Methods
CreateItem(IXDLSContentReader)
Creates new item.
Declaration
protected override OwnerHolder CreateItem(IXDLSContentReader reader)
Parameters
Type | Name | Description |
---|---|---|
IXDLSContentReader | reader | The IXDLSContentReader object. |
Returns
Type | Description |
---|---|
OwnerHolder | The OwnerHolder instance. |
Overrides
GetTagItemName()
Returns the name of xml tag.
Declaration
protected override string GetTagItemName()
Returns
Type | Description |
---|---|
System.String | The string that represents the xml tag name. |
Overrides
OnClear()
Occurs when all items are removed.
Declaration
protected override void OnClear()
Overrides
OnInsertComplete(Int32, Entity)
Occurs when entity is inserted.
Declaration
protected override void OnInsertComplete(int index, Entity entity)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index to insert the entity. |
Entity | entity | The Entity to insert. |
Overrides
OnRemove(Int32)
Occurs when entity is removed.
Declaration
protected override void OnRemove(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index to remove the entity. |