Click or drag to resize

OpenXmlElement Methods

The OpenXmlElement type exposes the following members.

Methods
 NameDescription
Public methodAddAnnotation Adds an object to the current OpenXmlElement element's list of annotations.
Public methodAddNamespaceDeclaration Adds a namespace declaration to the current node.
Public methodAncestors Enumerates all of the current element's ancestors.
Public methodAncestorsT Enumerates only the current element's ancestors that have the specified type.
Public methodAnnotation(Type) Get the first annotation object of the specified type from the current OpenXmlElement element.
Public methodAnnotationT Get the first annotation object of the specified type from the current OpenXmlElement element.
Public methodAnnotations(Type) Gets a collection of annotations with the specified type for the current OpenXmlElement element.
Public methodAnnotationsT Gets a collection of annotations with the specified type for the current OpenXmlElement element.
Public methodAppend(IEnumerableOpenXmlElement) Appends each element from a list of elements to the end of the current element's list of child elements.
Public methodAppend(OpenXmlElement) Appends each element from an array of elements to the end of the current element's list of child elements.
Public methodAppendChildT Appends the specified element to the end of the current element's list of child nodes.
Public methodClearAllAttributes Clears all of the attributes, including both known attributes and extended attributes.
Public methodClone Creates a duplicate of the current node.
Public methodCloneNode When overridden in a derived class, creates a duplicate of the node.
Public methodDescendants Enumerates all of the current element's descendants.
Public methodDescendantsT Enumerate all of the current element's descendants of type T.
Public methodElements Enumerates all of the current element's children.
Public methodElementsT Enumerates only the current element's children that have the specified type.
Public methodElementsAfter Enumerates all of the sibling elements that follow the current element and have the same parent as the current element.
Public methodElementsBefore Enumerates all of the sibling elements that precede the current element and have the same parent as the current element.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetAttribute Gets an Open XML attribute with the specified tag name and namespace URI.
Public methodGetAttributes Gets a list that contains a copy of all the attributes.
Public methodGetEnumerator Returns an enumerator that iterates through the child collection.
Public methodGetFirstChildT Finds the first child element in type T.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInsertAfterT Inserts the specified element immediately after the specified reference element.
Public methodInsertAfterSelfT Inserts the specified element immediately after the current element.
Public methodInsertAtT Inserts the specified element at the specified index in the current element's list of child elements.
Public methodInsertBeforeT Inserts the specified element immediately before the specified reference element.
Public methodInsertBeforeSelfT Inserts the specified element immediately before the current element.
Public methodIsAfter Determines if the current element appears after a specified element in document order.
Public methodIsBefore Determines if the current element appears before a specified element in document order.
Public methodLookupNamespace Resolves the namespace prefix in the context of the current node.
Public methodLookupPrefix Finds the corresponding prefix for a namespace uri in the current element scope.
Public methodNextSibling Gets the OpenXmlElement element that immediately follows the current OpenXmlElement element. Returns null (Nothing in Visual Basic) if there is no next OpenXmlElement element.
Public methodNextSiblingT Gets the OpenXmlElement element with the specified type that follows the current OpenXmlElement element. Returns null (Nothing in Visual Basic) if there is no next OpenXmlElement.
Public methodPrependChildT Inserts the specified element at the beginning of the current element's list of child elements.
Public methodPreviousSibling Gets the OpenXmlElement element that immediately precedes the current OpenXmlElement element. Returns null (Nothing in Visual Basic ) if there is no preceding OpenXmlElement element.
Public methodPreviousSiblingT Gets the OpenXmlElement element with the specified type that precedes the current OpenXmlElement. Returns null (Nothing in Visual Basic) if there is no preceding OpenXmlElement element.
Public methodRemove Removes the current element from its parent.
Public methodRemoveAllChildren Removes all of the current element's child elements.
Public methodRemoveAllChildrenT Remove all of the current element's child elements that are of type T.
Public methodRemoveAnnotations(Type) Removes the annotations of the specified type from the current OpenXmlElement element.
Public methodRemoveAnnotationsT Removes the annotations with the specified type from the current OpenXmlElement element.
Public methodRemoveAttribute Removes the attribute from the current element.
Public methodRemoveChildT Removes the specified child element from the current element's list of child elements.
Public methodRemoveNamespaceDeclaration Removes the namespace declaration for the specified prefix. Removes nothing if there is no prefix.
Public methodReplaceChildT Replaces a child element with another child element in the current element's list of child elements.
Public methodSetAttribute Sets an attribute to the specified element. If the attribute is a known attribute, the value of the attribute is set. If the attribute is an extended attribute, the 'openxmlAttribute' is added to the extended attributes list.
Public methodSetAttributes Sets a number of attributes to the element. If an attribute is a known attribute, the value of the attribute is set. If an attribute is an extended attribute, the 'openxmlAttribute' is added to the extended attributes list.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodWriteTo Saves the current node to the specified XmlWriter.
Top
See Also