WSectionCollection Class
Represents a collection of WSection.
Inheritance
System.Object
Syncfusion.DocIO.DLS.XML.XDLSSerializableCollection
WSectionCollection
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.DocIO.DLS
Assembly: Syncfusion.DocIO.Base.dll
Syntax
public class WSectionCollection : EntityCollection, IXDLSSerializableCollection, IWSectionCollection, IEntityCollectionBase, ICollectionBase, IEnumerable
Constructors
WSectionCollection(WordDocument)
Initializes a new instance of the WSectionCollection class.
Declaration
public WSectionCollection(WordDocument doc)
Parameters
Type | Name | Description |
---|---|---|
WordDocument | doc | The WordDocument instance. |
Properties
Item[Int32]
Gets the WSection at the specified index.
Declaration
public WSection this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the section to get |
Property Value
Type | Description |
---|---|
WSection | The WSection at the specified index |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | The index is not valid index in the WSectionCollection |
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
Add(IWSection)
Adds a new IWSection to end of document.
Declaration
public int Add(IWSection section)
Parameters
Type | Name | Description |
---|---|---|
IWSection | section | The IWSection to be added to the collection. |
Returns
Type | Description |
---|---|
System.Int32 | The zero-based index of the IWSection |
GetTagItemName()
Gets name of xml tag
Declaration
protected override string GetTagItemName()
Returns
Type | Description |
---|---|
System.String | The string that represents the section tag name. |
Overrides
Syncfusion.DocIO.DLS.XML.XDLSSerializableCollection.GetTagItemName()
IndexOf(IWSection)
Returns the zero-based index of the specified section.
Declaration
public int IndexOf(IWSection section)
Parameters
Type | Name | Description |
---|---|---|
IWSection | section | The IWSection object. |
Returns
Type | Description |
---|---|
System.Int32 | The zero-based index of the first occurrence of item |
Implements
System.Collections.IEnumerable