Share via


Xstring members

Include protected members
Include inherited members

Defines the Xstring Class.This class is only available in O15. When the object is serialized out as xml, its qualified name is x15:v.

The Xstring type exposes the following members.

Constructors

  Name Description
Public method Xstring()
Public method Xstring(String)

Top

Properties

  Name Description
Public property ChildElements Gets all the child nodes of the current element. (Inherited from OpenXmlElement.)
Public property ExtendedAttributes Gets all extended attributes (attributes not defined in the schema) of the current element. (Inherited from OpenXmlElement.)
Public property FirstChild Gets the first child of the OpenXmlElement element. Returns null (Nothing in Visual Basic) if there is no such OpenXmlElement element. (Inherited from OpenXmlElement.)
Public property HasAttributes Gets a boolean value that indicates whether the current element has any attributes. (Inherited from OpenXmlElement.)
Public property HasChildren Gets a value that indicates whether the current element has any child elements. (Inherited from OpenXmlLeafTextElement.)
Public property InnerText Gets or sets the concatenated values of the element and all of its child elements. (Inherited from OpenXmlLeafTextElement.)
Public property InnerXml Gets or sets the markup that only represents child elements of the current element. (Inherited from OpenXmlLeafTextElement.)
Public property LastChild Gets the last child of the OpenXmlElement element. Returns null (Nothing in Visual Basic) if there is no such OpenXmlElement element. (Inherited from OpenXmlElement.)
Public property LocalName (Overrides OpenXmlElement.LocalName.)
Public property MCAttributes Sets the markup compatibility attributes. Returns null if no markup compatibility attributes are defined for the current element. (Inherited from OpenXmlElement.)
Public property NamespaceDeclarations Gets all the namespace declarations defined in the current element. Returns an empty enumerator if there is no namespace declaration. (Inherited from OpenXmlElement.)
Public property NamespaceUri Gets the namespace URI of the current element. (Inherited from OpenXmlElement.)
Public property OpenXmlElementContext Gets the OpenXmlEementContext of the current element. (Inherited from OpenXmlElement.)
Public property OuterXml Gets the markup that represents the current element and all of its child elements. (Inherited from OpenXmlElement.)
Public property Parent Gets the parent element of the current element. (Inherited from OpenXmlElement.)
Public property Prefix Gets the namespace prefix of current element. (Inherited from OpenXmlElement.)
Public property Text Gets or sets the text of the current element. (Inherited from OpenXmlLeafTextElement.)
Public property XmlQualifiedName Gets the qualified name of the current element. (Inherited from OpenXmlElement.)

Top

Methods

  Name Description
Public method AddAnnotation Adds an object to the current OpenXmlElement element's list of annotations. (Inherited from OpenXmlElement.)
Public method AddNamespaceDeclaration Adds a namepace declaration to the current node. (Inherited from OpenXmlElement.)
Public method Ancestors() Enumerates all of the current element's ancestors. (Inherited from OpenXmlElement.)
Public method Annotation(Type) Get the first annotation object of the specified type from the current OpenXmlElement element. (Inherited from OpenXmlElement.)
Public method Annotation<T>() Get the first annotation object of the specified type from the current OpenXmlElement element. (Inherited from OpenXmlElement.)
Public method Annotations(Type) Gets a collection of annotations with the specified type for the current OpenXmlElement element. (Inherited from OpenXmlElement.)
Public method Annotations<T>() Gets a collection of annotations with the specified type for the current OpenXmlElement element. (Inherited from OpenXmlElement.)
Public method Append(array<OpenXmlElement[]) Appends each element from an array of elements to the end of the current element's list of child elements. (Inherited from OpenXmlElement.)
Public method Append(IEnumerable<OpenXmlElement>) Appends each element from a list of elements to the end of the current element's list of child elements. (Inherited from OpenXmlElement.)
Public method AppendChild<T> Appends the specified element to the end of the current element's list of child nodes. (Inherited from OpenXmlElement.)
Public method ClearAllAttributes Clears all of the attributes, including both known attributes and extended attributes. (Inherited from OpenXmlElement.)
Public method Clone Creates a duplicate of the current node. (Inherited from OpenXmlElement.)
Public method CloneNode (Overrides OpenXmlElement.CloneNode(Boolean).)
Public method Descendants<T>() Enumerate all of the current element's descendants of type T. (Inherited from OpenXmlElement.)
Public method Elements<T>() Enumerates only the current element's children that have the specified type. (Inherited from OpenXmlElement.)
Public method ElementsAfter Enumerates all of the sibling elements that follow the current element and have the same parent as the current element. (Inherited from OpenXmlElement.)
Public method ElementsBefore Enumerates all of the sibling elements that precede the current element and have the same parent as the current element. (Inherited from OpenXmlElement.)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetAttribute Gets an Open XML attribute with the specified tag name and namespace URI. (Inherited from OpenXmlElement.)
Public method GetAttributes Gets a list that contains a copy of all the attributes. (Inherited from OpenXmlElement.)
Public method GetEnumerator Returns an enumerator that iterates through the child collection. (Inherited from OpenXmlElement.)
Public method GetFirstChild<T> Finds the first child element in type T. (Inherited from OpenXmlElement.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method InsertAfter<T> Inserts the specified element immediately after the specified reference element. (Inherited from OpenXmlElement.)
Public method InsertAfterSelf<T> Inserts the specified element immediately after the current element. (Inherited from OpenXmlElement.)
Public method InsertAt<T> Inserts the specified element at the specified index in the current element's list of child elements. (Inherited from OpenXmlElement.)
Public method InsertBefore<T> Inserts the specified element immediately before the specified reference element. (Inherited from OpenXmlElement.)
Public method InsertBeforeSelf<T> Inserts the specified element immediately before the current element. (Inherited from OpenXmlElement.)
Public method IsAfter Determines if the current element appears after a specified element in document order. (Inherited from OpenXmlElement.)
Public method IsBefore Determines if the current element appears before a specified element in document order. (Inherited from OpenXmlElement.)
Public method LookupNamespace Resolves the namespace prefix in the context of the current node. (Inherited from OpenXmlElement.)
Public method LookupPrefix Finds the corresponding prefix for a namespace uri in the current element scope. (Inherited from OpenXmlElement.)
Protected method MemberwiseClone (Inherited from Object.)
Public method NextSibling() Gets the OpenXmlElement element that immediately follows the current OpenXmlElement element. Returns null (Nothing in Visual Basic) if there is no next OpenXmlElement element. (Inherited from OpenXmlElement.)
Public method PrependChild<T> Inserts the specified element at the beginning of the current element's list of child elements. (Inherited from OpenXmlElement.)
Public method PreviousSibling() Gets the OpenXmlElement element that immediately precedes the current OpenXmlElement element. Returns null (Nothing in Visual Basic ) if there is no preceding OpenXmlElement element. (Inherited from OpenXmlElement.)
Public method Remove Removes the current element from its parent. (Inherited from OpenXmlElement.)
Public method RemoveAllChildren Removes all child elements of the current element. (Inherited from OpenXmlLeafTextElement.)
Public method RemoveAnnotations(Type) Removes the annotations of the specified type from the current OpenXmlElement element. (Inherited from OpenXmlElement.)
Public method RemoveAnnotations<T>() Removes the annotations with the specified type from the current OpenXmlElement element. (Inherited from OpenXmlElement.)
Public method RemoveAttribute Removes the attribute from the current element. (Inherited from OpenXmlElement.)
Public method RemoveChild<T> Removes the specified child element from the current element's list of child elements. (Inherited from OpenXmlElement.)
Public method RemoveNamespaceDeclaration Removes the namespace declaration for the specified prefix. Removes nothing if there is no prefix. (Inherited from OpenXmlElement.)
Public method ReplaceChild<T> Replaces a child element with another child element in the current element's list of child elements. (Inherited from OpenXmlElement.)
Public method SetAttribute 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. (Inherited from OpenXmlElement.)
Public method SetAttributes 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. (Inherited from OpenXmlElement.)
Public method ToString (Inherited from Object.)
Public method WriteTo Saves the current node to the specified XmlWriter. (Inherited from OpenXmlElement.)

Top

Explicit interface implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator (Inherited from OpenXmlElement.)

Top

See also

Reference

Xstring class

DocumentFormat.OpenXml.Office15.Excel namespace