iText 7 7.2.3 API
iText.StyledXmlParser.Css.CssStyleSheet Class Reference

Class that stores all the CSS statements, and thus acts as a CSS style sheet. More...

Public Member Functions

  CssStyleSheet ()
  Creates a new CssStyleSheet instance. More...
 
virtual void  AddStatement (CssStatement statement)
  Adds a CSS statement to the style sheet. More...
 
virtual void  AppendCssStyleSheet (iText.StyledXmlParser.Css.CssStyleSheet anotherCssStyleSheet)
  Append another CSS style sheet to this one. More...
 
override String  ToString ()
 
virtual IList< CssStatement GetStatements ()
  Gets the CSS statements of this style sheet. More...
 
virtual IList< CssDeclaration GetCssDeclarations (INode node, MediaDeviceDescription deviceDescription)
  Gets the CSS declarations. More...
 
virtual IList< CssRuleSet GetCssRuleSets (INode node, MediaDeviceDescription deviceDescription)
  Gets the CSS rule sets. More...
 

Static Public Member Functions

static IDictionary< String, String >  ExtractStylesFromRuleSets (IList< CssRuleSet > ruleSets)
  Gets the CSS declarations. More...
 

Detailed Description

Class that stores all the CSS statements, and thus acts as a CSS style sheet.

Constructor & Destructor Documentation

◆ CssStyleSheet()

iText.StyledXmlParser.Css.CssStyleSheet.CssStyleSheet ( )
inline

Creates a new CssStyleSheet instance.

Member Function Documentation

◆ AddStatement()

virtual void iText.StyledXmlParser.Css.CssStyleSheet.AddStatement ( CssStatement  statement )
inlinevirtual

Adds a CSS statement to the style sheet.

Parameters
statement the CSS statement

◆ AppendCssStyleSheet()

virtual void iText.StyledXmlParser.Css.CssStyleSheet.AppendCssStyleSheet ( iText.StyledXmlParser.Css.CssStyleSheet  anotherCssStyleSheet )
inlinevirtual

Append another CSS style sheet to this one.

Parameters
anotherCssStyleSheet the other CSS style sheet

◆ ExtractStylesFromRuleSets()

static IDictionary iText.StyledXmlParser.Css.CssStyleSheet.ExtractStylesFromRuleSets ( IList< CssRuleSet ruleSets )
inlinestatic

Gets the CSS declarations.

Parameters
ruleSets list of css rule sets
Returns
the CSS declarations

◆ GetCssDeclarations()

virtual IList<CssDeclaration> iText.StyledXmlParser.Css.CssStyleSheet.GetCssDeclarations ( INode  node,
MediaDeviceDescription  deviceDescription 
)
inlinevirtual

Gets the CSS declarations.

Parameters
node the node
deviceDescription the media device description
Returns
the CSS declarations

◆ GetCssRuleSets()

virtual IList<CssRuleSet> iText.StyledXmlParser.Css.CssStyleSheet.GetCssRuleSets ( INode  node,
MediaDeviceDescription  deviceDescription 
)
inlinevirtual

Gets the CSS rule sets.

Parameters
node the node
deviceDescription the device description
Returns
the css rule sets

◆ GetStatements()

virtual IList<CssStatement> iText.StyledXmlParser.Css.CssStyleSheet.GetStatements ( )
inlinevirtual

Gets the CSS statements of this style sheet.

Returns
the CSS statements