Table of Contents

Class AttributeSyntax

Namespace
Icy.Design.Syntax
Assembly
IcyUI.Design.dll

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

bool

IsNamespaceDeclaration

Gets a value indicating whether this is an xmlns or xmlns:prefix declaration.

public bool IsNamespaceDeclaration { get; }

Property Value

bool

LocalName

Gets the part of Name after the first :, or the whole name when there is none.

public string LocalName { get; }

Property Value

string

Name

Gets the attribute's name as written, prefix included (x:Name, Grid.Row).

public string Name { get; }

Property Value

string

NameSpan

Gets the range of the name.

public TextSpan NameSpan { get; }

Property Value

TextSpan

Prefix

Gets the part of Name before the first :, or an empty string when there is none.

public string Prefix { get; }

Property Value

string

Quote

Gets the quote character around the value: ", ', or \0 when the value is unquoted or missing.

public char Quote { get; }

Property Value

char

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

string

ValueSpan

Gets the range of the value, quotes excluded. Empty, right after the name, when the value is missing.

public TextSpan ValueSpan { get; }

Property Value

TextSpan