XmlElementStartTagSyntax Class

The opening tag of an element, with the attributes it declares.

public sealed class XmlElementStartTagSyntax : XmlSyntaxNode
Inheritance
XmlSyntaxNode XmlElementStartTagSyntax

Properties

NameDescription
Attributes
GreaterThanToken
LessThanToken
NameGets the name of the element the tag opens.
NameToken
public SyntaxList<XmlAttributeSyntax> Attributes { get; }

No documentation is available.

public SyntaxToken GreaterThanToken { get; }

Property value

SyntaxToken

No documentation is available.

public SyntaxToken LessThanToken { get; }

Property value

SyntaxToken

No documentation is available.

Gets the name of the element the tag opens.

public string Name { get; }

Property value

string

public SyntaxToken NameToken { get; }

Property value

SyntaxToken

No documentation is available.

Methods

NameDescription
Accept(XmlSyntaxVisitor)
Accept<TResult>(XmlSyntaxVisitor<TResult>)
Update(SyntaxToken, SyntaxToken, SyntaxList<XmlAttributeSyntax>, SyntaxToken)Returns this node with the given parts, or itself when nothing changed.
WithAttributes(SyntaxList<XmlAttributeSyntax>)
WithGreaterThanToken(SyntaxToken)
WithLessThanToken(SyntaxToken)
WithNameToken(SyntaxToken)

Accept overloads

Accept(XmlSyntaxVisitor)

XmlElementStartTagSyntax.cs
public override void Accept(XmlSyntaxVisitor visitor)
Parameters
visitor XmlSyntaxVisitor

No documentation is available.

Accept<TResult>(XmlSyntaxVisitor<TResult>)

XmlElementStartTagSyntax.cs
public override TResult? Accept<TResult>(XmlSyntaxVisitor<TResult> visitor)
Type parameters
TResult
Parameters
visitor XmlSyntaxVisitor<TResult>
Returns

TResult?

No documentation is available.

Update(SyntaxToken, SyntaxToken, SyntaxList<XmlAttributeSyntax>, SyntaxToken)

XmlElementStartTagSyntax.cs

Returns this node with the given parts, or itself when nothing changed.

public XmlElementStartTagSyntax Update(SyntaxToken lessThanToken, SyntaxToken nameToken, SyntaxList<XmlAttributeSyntax> attributes, SyntaxToken greaterThanToken)

Parameters

lessThanToken SyntaxToken
nameToken SyntaxToken
attributes SyntaxList<XmlAttributeSyntax>
greaterThanToken SyntaxToken

Returns

XmlElementStartTagSyntax

WithAttributes(SyntaxList<XmlAttributeSyntax>)

XmlElementStartTagSyntax.cs
public XmlElementStartTagSyntax WithAttributes(SyntaxList<XmlAttributeSyntax> attributes)

No documentation is available.

WithGreaterThanToken(SyntaxToken)

XmlElementStartTagSyntax.cs
public XmlElementStartTagSyntax WithGreaterThanToken(SyntaxToken greaterThanToken)

Parameters

greaterThanToken SyntaxToken

Returns

XmlElementStartTagSyntax

No documentation is available.

WithLessThanToken(SyntaxToken)

XmlElementStartTagSyntax.cs
public XmlElementStartTagSyntax WithLessThanToken(SyntaxToken lessThanToken)

Parameters

lessThanToken SyntaxToken

Returns

XmlElementStartTagSyntax

No documentation is available.

WithNameToken(SyntaxToken)

XmlElementStartTagSyntax.cs
public XmlElementStartTagSyntax WithNameToken(SyntaxToken nameToken)

Parameters

nameToken SyntaxToken

Returns

XmlElementStartTagSyntax

No documentation is available.