All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

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) Inserts a new custom XML part at the specified position in the collection.
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.
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