CssQualifiedRuleSyntax Class

Represents a qualified rule: a prelude, then a block. A style rule is one, and so is a keyframe rule.

public sealed class CssQualifiedRuleSyntax : CssRuleSyntax
Inheritance
CssRuleSyntax CssQualifiedRuleSyntax

Properties

NameDescription
Block
Prelude
SelectorsGets the selectors of a style rule, or null when the prelude is not a valid selector list.
public CssBlockSyntax Block { get; }

Property value

CssBlockSyntax

No documentation is available.

public CssPreludeSyntax? Prelude { get; }

Property value

CssPreludeSyntax?

No documentation is available.

Gets the selectors of a style rule, or null when the prelude is not a valid selector list.

public CssSelectorListSyntax? Selectors { get; }

Methods

NameDescription
Accept(CssSyntaxVisitor)
Accept<TResult>(CssSyntaxVisitor<TResult>)
GetBlock()
GetPrelude()
Update(CssPreludeSyntax?, CssBlockSyntax)Returns this node with the given parts, or itself when nothing changed.
WithBlock(CssBlockSyntax)Returns this node with block in place of its CssQualifiedRuleSyntax.Block.
WithPrelude(CssPreludeSyntax?)Returns this node with prelude in place of its CssQualifiedRuleSyntax.Prelude.

Accept overloads

Accept(CssSyntaxVisitor)

Syntax.g.cs
public override void Accept(CssSyntaxVisitor visitor)
Parameters
visitor CssSyntaxVisitor

No documentation is available.

Accept<TResult>(CssSyntaxVisitor<TResult>)

Syntax.g.cs
public override TResult? Accept<TResult>(CssSyntaxVisitor<TResult> visitor)
Type parameters
TResult
Parameters
visitor CssSyntaxVisitor<TResult>
Returns

TResult?

No documentation is available.

public override CssBlockSyntax GetBlock()

No documentation is available.

public override CssPreludeSyntax? GetPrelude()

No documentation is available.

Update(CssPreludeSyntax?, CssBlockSyntax)

Syntax.g.cs

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

WithBlock(CssBlockSyntax)

Syntax.g.cs

Returns this node with block in place of its CssQualifiedRuleSyntax.Block.

public CssQualifiedRuleSyntax WithBlock(CssBlockSyntax block)

WithPrelude(CssPreludeSyntax?)

Syntax.g.cs

Returns this node with prelude in place of its CssQualifiedRuleSyntax.Prelude.

public CssQualifiedRuleSyntax WithPrelude(CssPreludeSyntax? prelude)