Class CustomXmlPartCollection
Represents the inplementation of custom xml part collection
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.XlsIO.Implementation.Collections
Assembly: Syncfusion.XlsIO.Base.dll
Syntax
public class CustomXmlPartCollection : CollectionBaseEx<ICustomXmlPart>, IList<ICustomXmlPart>, ICollection<ICustomXmlPart>, IEnumerable<ICustomXmlPart>, IParentApplication, ICloneParent, ICustomXmlPartCollection, IEnumerable
Constructors
CustomXmlPartCollection(IApplication, Object)
Default constructor.
Declaration
public CustomXmlPartCollection(IApplication application, object parent)
Parameters
Type | Name | Description |
---|---|---|
IApplication | application | |
System.Object | parent |
Properties
Count
Represents the collection count
Declaration
public int Count { get; }
Property Value
Type |
---|
System.Int32 |
Item[Int32]
Retruns CustomXmlPart at corresponding index positions
Declaration
public ICustomXmlPart this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type |
---|
ICustomXmlPart |
Methods
Add(ICustomXmlPart)
Adds new CustomXmlpart to the collections
Declaration
public ICustomXmlPart Add(ICustomXmlPart customXmlPart)
Parameters
Type | Name | Description |
---|---|---|
ICustomXmlPart | customXmlPart |
Returns
Type |
---|
ICustomXmlPart |
Add(String)
Creates new instance of CusomXmlPart from ID
Declaration
public ICustomXmlPart Add(string id)
Parameters
Type | Name | Description |
---|---|---|
System.String | id |
Returns
Type |
---|
ICustomXmlPart |
Add(String, Byte[])
Cretes new CustomXmlParts through specified arugments
Declaration
public ICustomXmlPart Add(string id, byte[] XmlData)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | |
System.Byte[] | XmlData |
Returns
Type |
---|
ICustomXmlPart |
AddLocal(ICustomXmlPart, Boolean)
Adds into list and hashtable, for local named ranges.
Declaration
public void AddLocal(ICustomXmlPart name, bool bAddInGlobalNamesHash)
Parameters
Type | Name | Description |
---|---|---|
ICustomXmlPart | name | Name to add. |
System.Boolean | bAddInGlobalNamesHash | Indicates is adds in global names hash. |
Clone()
Creates new instance of clone object
Declaration
public ICustomXmlPartCollection Clone()
Returns
Type |
---|
ICustomXmlPartCollection |
GetById(String)
Returns CustomXmlPart for corresponding id
Declaration
public ICustomXmlPart GetById(string id)
Parameters
Type | Name | Description |
---|---|---|
System.String | id |
Returns
Type |
---|
ICustomXmlPart |
OnInsertComplete(Int32, ICustomXmlPart)
Performs additional processes after inserting a new element into the collection.
Declaration
protected override void OnInsertComplete(int index, ICustomXmlPart customXmlPart)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which to insert value. |
ICustomXmlPart | customXmlPart |
Overrides
Remove(String)
Removes specified name from the collection.
Declaration
public void Remove(string id)
Parameters
Type | Name | Description |
---|---|---|
System.String | id |
Explicit Interface Implementations
ICustomXmlPartCollection.Clear()
Clear all items in the collections
Declaration
void ICustomXmlPartCollection.Clear()
ICustomXmlPartCollection.Count
CustomXmlPart Count
Declaration
int ICustomXmlPartCollection.Count { get; }
Returns
Type |
---|
System.Int32 |
ICustomXmlPartCollection.RemoveAt(Int32)
Removes specified name from the collection.
Declaration
void ICustomXmlPartCollection.RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Name of the object to remove. |