C# 클래스 LayoutFarm.WebDom.Parser.CssParserHelper

Parser to parse CSS stylesheet source string into CSS objects.
파일 보기 프로젝트 열기: prepare/HTML-Renderer

공개 메소드들

메소드 설명
ParseStyleSheet ( string stylesheet, WebDom defaultActiveSheet, bool combineWithDefault ) : WebDom.CssActiveSheet

Parse the given stylesheet source to CSS blocks dictionary.
The CSS blocks are organized into two level buckets of media type and class name.
Root media type are found under 'all' bucket.
If combineWithDefault is true the parsed css blocks are added to the default css data (as defined by W3), merged if class name already exists. If false only the data in the given stylesheet is returned.

ParseStyleSheet ( WebDom cssData, string cssTextSource ) : void

Parse the given stylesheet source to CSS blocks dictionary.
The CSS blocks are organized into two level buckets of media type and class name.
Root media type are found under 'all' bucket.
The parsed css blocks are added to the given css data, merged if class name already exists.

메소드 상세

ParseStyleSheet() 공개 정적인 메소드

Parse the given stylesheet source to CSS blocks dictionary.
The CSS blocks are organized into two level buckets of media type and class name.
Root media type are found under 'all' bucket.
If combineWithDefault is true the parsed css blocks are added to the default css data (as defined by W3), merged if class name already exists. If false only the data in the given stylesheet is returned.
public static ParseStyleSheet ( string stylesheet, WebDom defaultActiveSheet, bool combineWithDefault ) : WebDom.CssActiveSheet
stylesheet string raw css stylesheet to parse
defaultActiveSheet WebDom
combineWithDefault bool true - combine the parsed css data with default css data, false - return only the parsed css data
리턴 WebDom.CssActiveSheet

ParseStyleSheet() 공개 정적인 메소드

Parse the given stylesheet source to CSS blocks dictionary.
The CSS blocks are organized into two level buckets of media type and class name.
Root media type are found under 'all' bucket.
The parsed css blocks are added to the given css data, merged if class name already exists.
public static ParseStyleSheet ( WebDom cssData, string cssTextSource ) : void
cssData WebDom the CSS data to fill with parsed CSS objects
cssTextSource string raw css stylesheet to parse
리턴 void