IXmlElementContext Interface
Provides the base requirements for resolved information about a XML
element related to an IXmlContext.
public interface IXmlElementContext
Properties
AstNode
Gets the IAstNode that defines the element, if known.
IAstNode AstNode { get; }
Property Value
Remarks
This property may not be available if the element context was constructed via token scanning and the tokens are too far out of sync with the AST, which can be the case while editing is occurring.
Attributes
Gets the dictionary of attributes for this element.
IDictionary<XmlQualifiedName, IXmlAttributeContext> Attributes { get; }
Property Value
- IDictionary<XmlQualifiedName, IXmlAttributeContext>:
The dictionary of attributes for this element.
Remarks
The dictionary keys are the attribute qualified names and the values are IXmlAttributeContext objects.
EndTagSnapshotRange
Gets the nullable TextSnapshotRange that specifies the range of the end tag, if there is one.
TextSnapshotRange? EndTagSnapshotRange { get; }
Property Value
- TextSnapshotRange?:
The nullable TextSnapshotRange that specifies the range of the end tag, if there is one.
Remarks
This property may not be available if the element context was constructed via token scanning and the tokens are too far out of sync with the AST, which can be the case while editing is occurring.
Name
Gets the name of the element.
Namespace
Gets the namespace that defines the element.
NamespacePrefix
Gets the prefix of the namespace that defines the element.
string NamespacePrefix { get; }
Property Value
- string:
The prefix of the namespace that defines the element.
QualifiedName
Gets the System.Xml.XmlQualifiedName that contains the element's qualified name.
XmlQualifiedName QualifiedName { get; }
Property Value
- XmlQualifiedName:
The System.Xml.XmlQualifiedName that contains the element's qualified name.
SchemaElement
Gets the resolved System.Xml.Schema.XmlSchemaElement for this element, if known.
XmlSchemaElement SchemaElement { get; }
Property Value
- XmlSchemaElement:
The resolved System.Xml.Schema.XmlSchemaElement for this element, if known.
StartTagNameSnapshotRange
Gets the TextSnapshotRange that specifies the range of the start tag name.
TextSnapshotRange StartTagNameSnapshotRange { get; }
Property Value
- TextSnapshotRange:
The TextSnapshotRange that specifies the range of the start tag name.