Skip to main content

OfficeCustomXmlPartCollection<T> Members

A base interface for a workbook’s or text document’s collection of custom XML parts.

Properties

Name Description
Count Gets the number of elements contained in the ICollection. Inherited from ICollection.
IsSynchronized Gets a value indicating whether access to the ICollection is synchronized (thread safe). Inherited from ICollection.
SyncRoot Gets an object that can be used to synchronize access to the ICollection. Inherited from ICollection.

Methods

Name Description
Add() Adds a new item to the collection.
Add(String) Adds an item with the specified XML content to the collection.
Add(XmlDocument) Adds the specified XML document to the collection of custom XML parts.
Clear() Removes all custom XML parts from the collection.
Contains(T) Determines whether the collection contains the specified custom XML part.
Contains(String) Determines whether the collection contains an item whose XML content equals the specified XML string.
CopyTo(Array, Int32) Copies the elements of the ICollection to an Array, starting at a particular Array index. Inherited from ICollection.
GetEnumerator() Returns an enumerator that iterates through the collection. Inherited from IEnumerable<T>.
IndexOf(T) Returns the index of the specified custom XML part in the collection.
IndexOf(String) Returns the index of a custom XML part with the specified XML content.
Insert(Int32, String) Inserts a new custom XML part with the given content at the specified position in the collection.
Insert(Int32, XmlDocument) Inserts the specified XML document at the specified position in the collection.
Insert(Int32) Inserts a new custom XML part at the specified position in the collection.
Remove(T) Removes the specified custom XML part from the collection.
RemoveAt(Int32) Removes a custom XML part at the specified index from the collection.
See Also