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

Class CustomXmlPartCollection

An ordered collection of CustomXmlPart objects belonging to a document.

Inheritance
object
CustomXmlPartCollection
Implements
IEnumerable<CustomXmlPart>
IEnumerable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Document
Assembly: DRIT.Document.dll
Syntax
public class CustomXmlPartCollection : IEnumerable<CustomXmlPart>, IEnumerable

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(string)

Adds a new custom XML part with the given XML content and returns it.

Declaration
public CustomXmlPart Add(string xmlContent)
Parameters
Type Name Description
string xmlContent
Returns
Type Description
CustomXmlPart

Clear()

Removes all custom XML parts from the collection.

Declaration
public void Clear()

GetEnumerator()

Returns an enumerator that iterates through the collection.

Declaration
public IEnumerator<CustomXmlPart> GetEnumerator()
Returns
Type Description
IEnumerator<CustomXmlPart>

The resulting value.

Remove(CustomXmlPart)

Removes the specified custom XML part from the collection.

Declaration
public bool Remove(CustomXmlPart part)
Parameters
Type Name Description
CustomXmlPart part
Returns
Type Description
bool

SelectByID(string)

Selects a custom XML part by its ID.

Declaration
public CustomXmlPart SelectByID(string id)
Parameters
Type Name Description
string id
Returns
Type Description
CustomXmlPart

Implements

IEnumerable<T>
IEnumerable
Back to top

DR-IT Software documentation

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

Generated by DocFX