Class AttributeSyntax
An attribute in an element's start tag: Name="Value".
public sealed class AttributeSyntax : MarkupSyntaxNode
- Inheritance
-
AttributeSyntax
- Inherited Members
- Extension Methods
Properties
IsMissingValue
Gets a value indicating whether the attribute has no =value part at all.
public bool IsMissingValue { get; }
Property Value
IsNamespaceDeclaration
Gets a value indicating whether this is an xmlns or xmlns:prefix declaration.
public bool IsNamespaceDeclaration { get; }
Property Value
LocalName
Gets the part of Name after the first :, or the whole name when there is none.
public string LocalName { get; }
Property Value
Name
Gets the attribute's name as written, prefix included (x:Name, Grid.Row).
public string Name { get; }
Property Value
NameSpan
Gets the range of the name.
public TextSpan NameSpan { get; }
Property Value
Prefix
Gets the part of Name before the first :, or an empty string when there is none.
public string Prefix { get; }
Property Value
Quote
Gets the quote character around the value: ", ', or \0 when the value is unquoted
or missing.
public char Quote { get; }
Property Value
Value
Gets the value as an XML reader would report it: entities and character references decoded, and literal tabs and line breaks normalized to spaces.
public string Value { get; }
Property Value
ValueSpan
Gets the range of the value, quotes excluded. Empty, right after the name, when the value is missing.
public TextSpan ValueSpan { get; }