Table of Contents

Class CssNestedAtRule

Namespace
iText.StyledXmlParser.Css
Assembly
itext.styledxmlparser.dll

Class to store a nested CSS at-rule Nested at-rules are a subset of nested statements, which can be used as a statement of a style sheet as well as inside of conditional group rules.

public class CssNestedAtRule : CssAtRule
Inheritance
CssNestedAtRule
Derived
Inherited Members

Constructors

CssNestedAtRule(string, string)

Creates a CssNestedAtRule instance with an empty body.

public CssNestedAtRule(string ruleName, string ruleParameters)

Parameters

ruleName string

the rule name

ruleParameters string

the rule parameters

Fields

body

The body.

protected IList<CssStatement> body

Field Value

IList<CssStatement>

Methods

AddBodyCssDeclarations(IList<CssDeclaration>)

Adds the body CSS declarations.

public virtual void AddBodyCssDeclarations(IList<CssDeclaration> cssDeclarations)

Parameters

cssDeclarations IList<CssDeclaration>

a list of CSS declarations

AddStatementToBody(CssStatement)

Adds a CSS statement to body.

public virtual void AddStatementToBody(CssStatement statement)

Parameters

statement CssStatement

a CSS statement

AddStatementsToBody(ICollection<CssStatement>)

Adds CSS statements to the body.

public virtual void AddStatementsToBody(ICollection<CssStatement> statements)

Parameters

statements ICollection<CssStatement>

a list of CSS statements

GetCssRuleSets(INode, MediaDeviceDescription)

public override IList<CssRuleSet> GetCssRuleSets(INode node, MediaDeviceDescription deviceDescription)

Parameters

node INode
deviceDescription MediaDeviceDescription

Returns

IList<CssRuleSet>

GetRuleParameters()

public virtual string GetRuleParameters()

Returns

string

GetStatements()

Gets the list of CSS statements.

public virtual IList<CssStatement> GetStatements()

Returns

IList<CssStatement>

the list of CSS statements

ToString()

public override string ToString()

Returns

string