Class HTMLUICSSParser
This class is responsible for CSS document parsing.
Inheritance
System.Object
HTMLUICSSParser
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.HTMLUI.Base
Assembly: Syncfusion.HTMLUI.Base.dll
Syntax
public class HTMLUICSSParser
Constructors
HTMLUICSSParser()
Overloaded Constructor. Initializes new object.
Declaration
public HTMLUICSSParser()
HTMLUICSSParser(TokenStream)
Initializes new object from the stream.
Declaration
public HTMLUICSSParser(TokenStream stream)
Parameters
Type | Name | Description |
---|---|---|
TokenStream | stream | Token stream object. |
HTMLUICSSParser(String)
Initializes new object.
Declaration
public HTMLUICSSParser(string fileName)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | Path to file for parsing. |
Properties
Document
Gets the XML document.
Declaration
public XmlDocument Document { get; }
Property Value
Type |
---|
System.Xml.XmlDocument |
Methods
ConvertCSSToXML(TokenStream)
Converts to XML.
Declaration
protected virtual Stream ConvertCSSToXML(TokenStream stream)
Parameters
Type | Name | Description |
---|---|---|
TokenStream | stream | Input stream. |
Returns
Type | Description |
---|---|
System.IO.Stream | The base stream infilled by parser. |
Parse(TokenStream)
Utility method. Converts file to XML.
Declaration
public XmlDocument Parse(TokenStream stream)
Parameters
Type | Name | Description |
---|---|---|
TokenStream | stream | Token stream object. |
Returns
Type |
---|
System.Xml.XmlDocument |
Parse(String)
Overloaded Utility method. Converts file to XML.
Declaration
public XmlDocument Parse(string fileName)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | Path to CSS document. |
Returns
Type |
---|
System.Xml.XmlDocument |
ParseString(String)
Converts CSS string which contains style declaration to XML document.
Declaration
public XmlDocument ParseString(string styleDeclaration)
Parameters
Type | Name | Description |
---|---|---|
System.String | styleDeclaration | Declaration of CSS style(s). |
Returns
Type | Description |
---|---|
System.Xml.XmlDocument | Document which contains an XML interpretation of the CSS document. |