CssStyleSheetSyntax Class
Represents a whole style sheet: its statements, and the end of the text.
public sealed class CssStyleSheetSyntax : CssSyntaxNode- Inheritance
CssSyntaxNodeCssStyleSheetSyntax
Properties
| Name | Description |
|---|---|
| Declarations | Gets the declarations at the top level, which only a declaration list, such as a style attribute, holds. |
| EndOfFileToken | |
| Rules | Gets the rules at the top level of the style sheet, leaving out what a browser ignores. |
| Statements |
Declarations
CssStyleSheetSyntax.csGets the declarations at the top level, which only a declaration list, such as a style attribute, holds.
public IEnumerable<CssDeclarationSyntax> Declarations { get; }Property value
EndOfFileToken
Syntax.g.csGets the rules at the top level of the style sheet, leaving out what a browser ignores.
public IEnumerable<CssRuleSyntax> Rules { get; }Property value
Statements
Syntax.g.cspublic SyntaxList<CssStatementSyntax> Statements { get; }Property value
No documentation is available.
Methods
| Name | Description |
|---|---|
| Accept(CssSyntaxVisitor) | |
| Accept<TResult>(CssSyntaxVisitor<TResult>) | |
| Update(SyntaxList<CssStatementSyntax>, SyntaxToken) | Returns this node with the given parts, or itself when nothing changed. |
| WithEndOfFileToken(SyntaxToken) | Returns this node with endOfFileToken in place of its CssStyleSheetSyntax.EndOfFileToken. |
| WithStatements(SyntaxList<CssStatementSyntax>) | Returns this node with statements in place of its CssStyleSheetSyntax.Statements. |
Accept overloads
Accept(CssSyntaxVisitor)
Syntax.g.cspublic override void Accept(CssSyntaxVisitor visitor)Parameters
visitorCssSyntaxVisitor
No documentation is available.
Accept<TResult>(CssSyntaxVisitor<TResult>)
Syntax.g.cspublic override TResult? Accept<TResult>(CssSyntaxVisitor<TResult> visitor)No documentation is available.
Update(SyntaxList<CssStatementSyntax>, SyntaxToken)
Syntax.g.csReturns this node with the given parts, or itself when nothing changed.
public CssStyleSheetSyntax Update(SyntaxList<CssStatementSyntax> statements, SyntaxToken endOfFileToken)WithEndOfFileToken(SyntaxToken)
Syntax.g.csReturns this node with endOfFileToken in place of its CssStyleSheetSyntax.EndOfFileToken.
public CssStyleSheetSyntax WithEndOfFileToken(SyntaxToken endOfFileToken)WithStatements(SyntaxList<CssStatementSyntax>)
Syntax.g.csReturns this node with statements in place of its CssStyleSheetSyntax.Statements.
public CssStyleSheetSyntax WithStatements(SyntaxList<CssStatementSyntax> statements)