Class CustomXmlPartCollection
Represents a collection of custom XML parts in a workbook.
Inherited Members
Namespace: DRIT.Spreadsheet
Assembly: DRIT.Spreadsheet.dll
Syntax
public class CustomXmlPartCollection
Properties
Count
Gets the number of custom XML parts in the collection.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
this[int]
Gets the custom XML part at the specified index.
Declaration
public CustomXmlPart this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |
Property Value
| Type | Description |
|---|---|
| CustomXmlPart |
Methods
Add(byte[], byte[])
Adds a new custom XML part to the collection.
Declaration
public int Add(byte[] data, byte[] schema)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | data | The XML data as a byte array. |
| byte[] | schema | The XML schema as a byte array. |
Returns
| Type | Description |
|---|---|
| int | The index of the newly added custom XML part. |
SelectByID(string)
Selects a custom XML part by its ID.
Declaration
public CustomXmlPart SelectByID(string id)
Parameters
| Type | Name | Description |
|---|---|---|
| string | id | The ID of the custom XML part to find. |
Returns
| Type | Description |
|---|---|
| CustomXmlPart | The custom XML part with the specified ID, or null if not found. |