C# Class CardMaker.XML.ProjectLayoutElement

显示文件 Open project: nhmkdev/cardmaker Class Usage Examples

Private Properties

Property Type Description
ProjectLayoutElement System

Public Methods

Method Description
DeepCopy ( ProjectLayoutElement zElement, bool bInitializeCache ) : void

Performs a partial deepy copy based on the input element, the name field is left unchanged

GetElementBorderColor ( ) : Color
GetElementColor ( ) : Color
GetElementColorString ( Color zColor ) : string

Converts a color to the a color formatted string for serialization across the app (0x hex form)

GetElementFont ( ) : Font
GetElementOutlineColor ( ) : Color
GetHorizontalAlignment ( ) : StringAlignment
GetVerticalAlignment ( ) : StringAlignment
InitializeCache ( ) : void

Initializes the cache variables for color and font translation

ProjectLayoutElement ( string sName ) : System
SetElementBorderColor ( Color zColor ) : void

Sets the border color and color string

SetElementColor ( Color zColor ) : void

Sets the element color and color string

SetElementFont ( Font zFont ) : void

Sets the font and font string

SetElementOutlineColor ( Color zColor ) : void

Sets the outline color and color string

ToString ( ) : string
TranslateColorString ( string sColor ) : Color

Translates a color string

TranslateFontString ( string fontString ) : Font

Translates a font string to a font

Private Methods

Method Description
ProjectLayoutElement ( ) : System

Method Details

DeepCopy() public method

Performs a partial deepy copy based on the input element, the name field is left unchanged
public DeepCopy ( ProjectLayoutElement zElement, bool bInitializeCache ) : void
zElement ProjectLayoutElement The source element to copy from
bInitializeCache bool flag indicating whether to reinitialize the cache
return void

GetElementBorderColor() public method

public GetElementBorderColor ( ) : Color
return Color

GetElementColor() public method

public GetElementColor ( ) : Color
return Color

GetElementColorString() public static method

Converts a color to the a color formatted string for serialization across the app (0x hex form)
public static GetElementColorString ( Color zColor ) : string
zColor Color
return string

GetElementFont() public method

public GetElementFont ( ) : Font
return System.Drawing.Font

GetElementOutlineColor() public method

public GetElementOutlineColor ( ) : Color
return Color

GetHorizontalAlignment() public method

public GetHorizontalAlignment ( ) : StringAlignment
return StringAlignment

GetVerticalAlignment() public method

public GetVerticalAlignment ( ) : StringAlignment
return StringAlignment

InitializeCache() public method

Initializes the cache variables for color and font translation
public InitializeCache ( ) : void
return void

ProjectLayoutElement() public method

public ProjectLayoutElement ( string sName ) : System
sName string
return System

SetElementBorderColor() public method

Sets the border color and color string
public SetElementBorderColor ( Color zColor ) : void
zColor Color The color to pull the values from
return void

SetElementColor() public method

Sets the element color and color string
public SetElementColor ( Color zColor ) : void
zColor Color The color to pull the values from
return void

SetElementFont() public method

Sets the font and font string
public SetElementFont ( Font zFont ) : void
zFont System.Drawing.Font The font to pull the settings from
return void

SetElementOutlineColor() public method

Sets the outline color and color string
public SetElementOutlineColor ( Color zColor ) : void
zColor Color The color to pull the values from
return void

ToString() public method

public ToString ( ) : string
return string

TranslateColorString() public static method

Translates a color string
public static TranslateColorString ( string sColor ) : Color
sColor string The color string to translate
return Color

TranslateFontString() public static method

Translates a font string to a font
public static TranslateFontString ( string fontString ) : Font
fontString string The font string to translate
return System.Drawing.Font