C# Class ComponentFactory.Krypton.Toolkit.PaletteRedirectBack

Redirect background based on the incoming state of the request.
Inheritance: PaletteRedirect
Mostrar archivo Open project: Cocotteseb/Krypton Class Usage Examples

Public Methods

Method Description
GetBackColor1 ( PaletteBackStyle style, PaletteState state ) : Color

Gets the first background color.

GetBackColor2 ( PaletteBackStyle style, PaletteState state ) : Color

Gets the second back color.

GetBackColorAlign ( PaletteBackStyle style, PaletteState state ) : PaletteRectangleAlign

Gets the color alignment.

GetBackColorAngle ( PaletteBackStyle style, PaletteState state ) : float

Gets the color background angle.

GetBackColorStyle ( PaletteBackStyle style, PaletteState state ) : PaletteColorStyle

Gets the color background drawing style.

GetBackDraw ( PaletteBackStyle style, PaletteState state ) : InheritBool

Gets a value indicating if background should be drawn.

GetBackGraphicsHint ( PaletteBackStyle style, PaletteState state ) : PaletteGraphicsHint

Gets the graphics drawing hint for the background.

GetBackImage ( PaletteBackStyle style, PaletteState state ) : Image

Gets a background image.

GetBackImageAlign ( PaletteBackStyle style, PaletteState state ) : PaletteRectangleAlign

Gets the image alignment.

GetBackImageStyle ( PaletteBackStyle style, PaletteState state ) : PaletteImageStyle

Gets the background image style.

PaletteRedirectBack ( IPalette target ) : System

Initialize a new instance of the PaletteRedirectBack class.

PaletteRedirectBack ( IPalette target, IPaletteBack disabled, IPaletteBack normal ) : System

Initialize a new instance of the PaletteRedirectBack class.

PaletteRedirectBack ( IPalette target, IPaletteBack disabled, IPaletteBack normal, IPaletteBack pressed, IPaletteBack tracking, IPaletteBack checkedNormal, IPaletteBack checkedPressed, IPaletteBack checkedTracking, IPaletteBack focusOverride, IPaletteBack normalDefaultOverride ) : System

Initialize a new instance of the PaletteRedirectBack class.

ResetRedirectStates ( ) : void

Reset the redirection states to null.

SetRedirectStates ( IPaletteBack disabled, IPaletteBack normal ) : void

Set the redirection states.

Private Methods

Method Description
GetInherit ( PaletteState state ) : IPaletteBack

Method Details

GetBackColor1() public method

Gets the first background color.
public GetBackColor1 ( PaletteBackStyle style, PaletteState state ) : Color
style PaletteBackStyle Background style.
state PaletteState Palette value should be applicable to this state.
return Color

GetBackColor2() public method

Gets the second back color.
public GetBackColor2 ( PaletteBackStyle style, PaletteState state ) : Color
style PaletteBackStyle Background style.
state PaletteState Palette value should be applicable to this state.
return Color

GetBackColorAlign() public method

Gets the color alignment.
public GetBackColorAlign ( PaletteBackStyle style, PaletteState state ) : PaletteRectangleAlign
style PaletteBackStyle Background style.
state PaletteState Palette value should be applicable to this state.
return PaletteRectangleAlign

GetBackColorAngle() public method

Gets the color background angle.
public GetBackColorAngle ( PaletteBackStyle style, PaletteState state ) : float
style PaletteBackStyle Background style.
state PaletteState Palette value should be applicable to this state.
return float

GetBackColorStyle() public method

Gets the color background drawing style.
public GetBackColorStyle ( PaletteBackStyle style, PaletteState state ) : PaletteColorStyle
style PaletteBackStyle Background style.
state PaletteState Palette value should be applicable to this state.
return PaletteColorStyle

GetBackDraw() public method

Gets a value indicating if background should be drawn.
public GetBackDraw ( PaletteBackStyle style, PaletteState state ) : InheritBool
style PaletteBackStyle Background style.
state PaletteState Palette value should be applicable to this state.
return InheritBool

GetBackGraphicsHint() public method

Gets the graphics drawing hint for the background.
public GetBackGraphicsHint ( PaletteBackStyle style, PaletteState state ) : PaletteGraphicsHint
style PaletteBackStyle Border style.
state PaletteState Palette value should be applicable to this state.
return PaletteGraphicsHint

GetBackImage() public method

Gets a background image.
public GetBackImage ( PaletteBackStyle style, PaletteState state ) : Image
style PaletteBackStyle Background style.
state PaletteState Palette value should be applicable to this state.
return Image

GetBackImageAlign() public method

Gets the image alignment.
public GetBackImageAlign ( PaletteBackStyle style, PaletteState state ) : PaletteRectangleAlign
style PaletteBackStyle Background style.
state PaletteState Palette value should be applicable to this state.
return PaletteRectangleAlign

GetBackImageStyle() public method

Gets the background image style.
public GetBackImageStyle ( PaletteBackStyle style, PaletteState state ) : PaletteImageStyle
style PaletteBackStyle Background style.
state PaletteState Palette value should be applicable to this state.
return PaletteImageStyle

PaletteRedirectBack() public method

Initialize a new instance of the PaletteRedirectBack class.
public PaletteRedirectBack ( IPalette target ) : System
target IPalette Initial palette target for redirection.
return System

PaletteRedirectBack() public method

Initialize a new instance of the PaletteRedirectBack class.
public PaletteRedirectBack ( IPalette target, IPaletteBack disabled, IPaletteBack normal ) : System
target IPalette Initial palette target for redirection.
disabled IPaletteBack Redirection for disabled state requests.
normal IPaletteBack Redirection for normal state requests.
return System

PaletteRedirectBack() public method

Initialize a new instance of the PaletteRedirectBack class.
public PaletteRedirectBack ( IPalette target, IPaletteBack disabled, IPaletteBack normal, IPaletteBack pressed, IPaletteBack tracking, IPaletteBack checkedNormal, IPaletteBack checkedPressed, IPaletteBack checkedTracking, IPaletteBack focusOverride, IPaletteBack normalDefaultOverride ) : System
target IPalette Initial palette target for redirection.
disabled IPaletteBack Redirection for disabled state requests.
normal IPaletteBack Redirection for normal state requests.
pressed IPaletteBack Redirection for pressed state requests.
tracking IPaletteBack Redirection for tracking state requests.
checkedNormal IPaletteBack Redirection for checked normal state requests.
checkedPressed IPaletteBack Redirection for checked pressed state requests.
checkedTracking IPaletteBack Redirection for checked tracking state requests.
focusOverride IPaletteBack Redirection for focus override state requests.
normalDefaultOverride IPaletteBack Redirection for normal default override state requests.
return System

ResetRedirectStates() public method

Reset the redirection states to null.
public ResetRedirectStates ( ) : void
return void

SetRedirectStates() public method

Set the redirection states.
public SetRedirectStates ( IPaletteBack disabled, IPaletteBack normal ) : void
disabled IPaletteBack Redirection for disabled state requests.
normal IPaletteBack Redirection for normal state requests.
return void