• 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 presentation.

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.Presentation
Assembly: DRIT.Presentation.dll
Syntax
public class CustomXmlPartCollection : IEnumerable<CustomXmlPart>, IEnumerable

Properties

Count

Returns the number of custom XML parts in the collection.

Declaration
public int Count { get; }
Property Value
Type Description
int

this[int]

Returns the custom XML part at the given zero-based 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
Exceptions
Type Condition
ArgumentNullException

Thrown when xmlContent is null.

Clear()

Removes all custom XML parts from the collection.

Declaration
public void Clear()

GetEnumerator()

Returns an enumerator that iterates through this collection.

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

An enumerator that iterates through this collection.

Remove(CustomXmlPart)

Removes the specified custom XML part from the collection. Returns true if the part was found and removed.

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

Replace(int, string)

Replaces the part at the specified zero-based index while preserving collection order.

Declaration
public CustomXmlPart Replace(int index, string xmlContent)
Parameters
Type Name Description
int index

The zero-based part index.

string xmlContent

The replacement XML content.

Returns
Type Description
CustomXmlPart

The replacement part.

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