Class CssParser

Inheritance
System.Object
CssParser
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: EPiServer.CssParsing
Assembly: EPiServer.Framework.dll
Version: 8.11.0
Syntax
public class CssParser

Constructors

CssParser()

Initializes a new instance of the CssParser class.

Declaration
public CssParser()

Properties

CssDocument

Gets the CSS document.

Declaration
public CssDocument CssDocument { get; }
Property Value
Type Description
CssDocument

The CSS document.

Errors

Gets the errors.

Declaration
public IList<string> Errors { get; }
Property Value
Type Description
System.Collections.Generic.IList<System.String>

The errors.

Methods

GetTokens(String)

Gets the tokens.

Declaration
public static IList<Token> GetTokens(string fileName)
Parameters
Type Name Description
System.String fileName

Name of the file.

Returns
Type Description
System.Collections.Generic.IList<Token>

ParseFile(String)

Parses the css file.

Declaration
public CssDocument ParseFile(string fileName)
Parameters
Type Name Description
System.String fileName

Name of the file.

Returns
Type Description
CssDocument

ParseStream(Stream)

Parses the streamto return CssDocument.

Declaration
public CssDocument ParseStream(Stream stream)
Parameters
Type Name Description
System.IO.Stream stream

The stream.

Returns
Type Description
CssDocument CssDocument

ParseText(String)

Parses string to return CssDocument.

Declaration
public CssDocument ParseText(string content)
Parameters
Type Name Description
System.String content

The content.

Returns
Type Description
CssDocument CssDocument