• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class CustomXmlPartCollection

Represents a collection of custom XML parts in a workbook.

Inheritance
object
CustomXmlPartCollection
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
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.

Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX