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
Fields
body
The body.
protected IList<CssStatement> body
Field Value
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
CssStatementa 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
INodedeviceDescription
MediaDeviceDescription
Returns
GetRuleParameters()
public virtual string GetRuleParameters()
Returns
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()