C# Class ZForge.Controls.ExplorerBar.Parser

A class that parses a UIFILE
Mostrar archivo Open project: zhuangyy/Motion Class Usage Examples

Public Methods

Method Description
GetBytes ( string hexString ) : byte[]

Parse ( ) : ExplorerBarInfo

Parses the UIFILE

Parser ( string uifile ) : System

Creates a new Parser

Private Methods

Method Description
ExtractARGBColor ( ) : Color

Extracts an ARGB color from the current token

ExtractBackground ( ) : void

Gets the Background property

ExtractBitmap ( ) : void

Extracts bitmap specified by the current token from the ShellStyle.dll

ExtractBorder ( ) : void

Gets the Border property

ExtractBorderColor ( ) : void

Gets the Border color property

ExtractColor ( ) : Color

Extracts a color from the current token

ExtractContent ( ) : void

Extracts a Bitmap from a "content" property

ExtractContentAlignment ( ) : void

Extracts a ContentAlignment from a "contentalign" property

ExtractFontFace ( ) : void

Gets the FontFace property

ExtractFontSize ( ) : void

Gets the FontFace property

ExtractFontStyle ( ) : void

Gets the FontStyle property

ExtractFontWeight ( ) : void

Gets the FontWeight property

ExtractForeground ( ) : void

Gets the Foreground color property

ExtractHexColor ( string s ) : Color

Extracts a color from a hexadecimal string

ExtractMargin ( ) : void

Gets the Margin property

ExtractPadding ( ) : void

Gets the Padding property

ExtractProperty ( ) : void

Extracts a property from the current property token

ExtractRGBColor ( ) : Color

Extracts a RGB color from the current token

GetContentAlignment ( string s ) : ContentAlignment

Returns the ContentAlignment value contained in the specified string

GetPropertyType ( string s ) : int

Returns the property type for the current proprty token

GetSection ( string s ) : int

Returns the name of the property section for the current token

GetStyle ( string s ) : int

Returns the style name for the current style token

HexToByte ( string hex ) : byte

IsHexDigit ( Char c ) : bool

IsProperty ( string s ) : bool

Returns whether the token is a property that we are interested in

IsSection ( string s ) : bool

Returns whether the token is a property section that we are interested in

Method Details

GetBytes() public method

public GetBytes ( string hexString ) : byte[]
hexString string
return byte[]

Parse() public method

Parses the UIFILE
public Parse ( ) : ExplorerBarInfo
return ExplorerBarInfo

Parser() public method

Creates a new Parser
public Parser ( string uifile ) : System
uifile string The text from the UIFILE that is to be parsed
return System