WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class HTMLUICSSParser

    Show / Hide Table of Contents

    Class HTMLUICSSParser

    This class is responsible for CSS document parsing.

    Inheritance
    System.Object
    HTMLUICSSParser
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    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 Description
    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 Description
    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 Description
    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.

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved