C# Class ComponentFactory.Krypton.Toolkit.PaletteRedirectDouble

Redirect back/border based on the incoming state of the request.
Inheritance: PaletteRedirect
Datei anzeigen Open project: ComponentFactory/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.

GetBorderColor1 ( PaletteBorderStyle style, PaletteState state ) : Color

Gets the first border color.

GetBorderColor2 ( PaletteBorderStyle style, PaletteState state ) : Color

Gets the second border color.

GetBorderColorAlign ( PaletteBorderStyle style, PaletteState state ) : PaletteRectangleAlign

Gets the color border alignment.

GetBorderColorAngle ( PaletteBorderStyle style, PaletteState state ) : float

Gets the color border angle.

GetBorderColorStyle ( PaletteBorderStyle style, PaletteState state ) : PaletteColorStyle

Gets the color border drawing style.

GetBorderDraw ( PaletteBorderStyle style, PaletteState state ) : InheritBool

Gets a value indicating if border should be drawn.

GetBorderDrawBorders ( PaletteBorderStyle style, PaletteState state ) : PaletteDrawBorders

Gets a value indicating which borders to draw.

GetBorderGraphicsHint ( PaletteBorderStyle style, PaletteState state ) : PaletteGraphicsHint

Gets the graphics drawing hint for the border.

GetBorderImage ( PaletteBorderStyle style, PaletteState state ) : Image

Gets a border image.

GetBorderImageAlign ( PaletteBorderStyle style, PaletteState state ) : PaletteRectangleAlign

Gets the image border alignment.

GetBorderImageStyle ( PaletteBorderStyle style, PaletteState state ) : PaletteImageStyle

Gets the border image style.

GetBorderRounding ( PaletteBorderStyle style, PaletteState state ) : int

Gets the border corner rounding.

GetBorderWidth ( PaletteBorderStyle style, PaletteState state ) : int

Gets the border width.

PaletteRedirectDouble ( ) : System

Initialize a new instance of the PaletteRedirectDouble class.

PaletteRedirectDouble ( IPalette target ) : System

Initialize a new instance of the PaletteRedirectDouble class.

PaletteRedirectDouble ( IPalette target, IPaletteDouble disabled, IPaletteDouble normal ) : System

Initialize a new instance of the PaletteRedirectDouble class.

PaletteRedirectDouble ( IPalette target, IPaletteDouble disabled, IPaletteDouble normal, IPaletteDouble pressed, IPaletteDouble tracking ) : System

Initialize a new instance of the PaletteRedirectDouble class.

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

Initialize a new instance of the PaletteRedirectDouble class.

ResetRedirectStates ( ) : void

Reset the redirection states to null.

SetRedirectStates ( IPaletteDouble disabled, IPaletteDouble normal ) : void

Set the redirection states.

SetRedirectStates ( IPaletteDouble disabled, IPaletteDouble normal, IPaletteDouble pressed, IPaletteDouble tracking ) : void

Set the redirection states.

Private Methods

Method Description
GetInherit ( PaletteState state ) : IPaletteDouble

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

GetBorderColor1() public method

Gets the first border color.
public GetBorderColor1 ( PaletteBorderStyle style, PaletteState state ) : Color
style PaletteBorderStyle Border style.
state PaletteState Palette value should be applicable to this state.
return Color

GetBorderColor2() public method

Gets the second border color.
public GetBorderColor2 ( PaletteBorderStyle style, PaletteState state ) : Color
style PaletteBorderStyle Border style.
state PaletteState Palette value should be applicable to this state.
return Color

GetBorderColorAlign() public method

Gets the color border alignment.
public GetBorderColorAlign ( PaletteBorderStyle style, PaletteState state ) : PaletteRectangleAlign
style PaletteBorderStyle Border style.
state PaletteState Palette value should be applicable to this state.
return PaletteRectangleAlign

GetBorderColorAngle() public method

Gets the color border angle.
public GetBorderColorAngle ( PaletteBorderStyle style, PaletteState state ) : float
style PaletteBorderStyle Border style.
state PaletteState Palette value should be applicable to this state.
return float

GetBorderColorStyle() public method

Gets the color border drawing style.
public GetBorderColorStyle ( PaletteBorderStyle style, PaletteState state ) : PaletteColorStyle
style PaletteBorderStyle Border style.
state PaletteState Palette value should be applicable to this state.
return PaletteColorStyle

GetBorderDraw() public method

Gets a value indicating if border should be drawn.
public GetBorderDraw ( PaletteBorderStyle style, PaletteState state ) : InheritBool
style PaletteBorderStyle Border style.
state PaletteState Palette value should be applicable to this state.
return InheritBool

GetBorderDrawBorders() public method

Gets a value indicating which borders to draw.
public GetBorderDrawBorders ( PaletteBorderStyle style, PaletteState state ) : PaletteDrawBorders
style PaletteBorderStyle Border style.
state PaletteState Palette value should be applicable to this state.
return PaletteDrawBorders

GetBorderGraphicsHint() public method

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

GetBorderImage() public method

Gets a border image.
public GetBorderImage ( PaletteBorderStyle style, PaletteState state ) : Image
style PaletteBorderStyle Border style.
state PaletteState Palette value should be applicable to this state.
return Image

GetBorderImageAlign() public method

Gets the image border alignment.
public GetBorderImageAlign ( PaletteBorderStyle style, PaletteState state ) : PaletteRectangleAlign
style PaletteBorderStyle Border style.
state PaletteState Palette value should be applicable to this state.
return PaletteRectangleAlign

GetBorderImageStyle() public method

Gets the border image style.
public GetBorderImageStyle ( PaletteBorderStyle style, PaletteState state ) : PaletteImageStyle
style PaletteBorderStyle Border style.
state PaletteState Palette value should be applicable to this state.
return PaletteImageStyle

GetBorderRounding() public method

Gets the border corner rounding.
public GetBorderRounding ( PaletteBorderStyle style, PaletteState state ) : int
style PaletteBorderStyle Border style.
state PaletteState Palette value should be applicable to this state.
return int

GetBorderWidth() public method

Gets the border width.
public GetBorderWidth ( PaletteBorderStyle style, PaletteState state ) : int
style PaletteBorderStyle Border style.
state PaletteState Palette value should be applicable to this state.
return int

PaletteRedirectDouble() public method

Initialize a new instance of the PaletteRedirectDouble class.
public PaletteRedirectDouble ( ) : System
return System

PaletteRedirectDouble() public method

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

PaletteRedirectDouble() public method

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

PaletteRedirectDouble() public method

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

PaletteRedirectDouble() public method

Initialize a new instance of the PaletteRedirectDouble class.
public PaletteRedirectDouble ( IPalette target, IPaletteDouble disabled, IPaletteDouble normal, IPaletteDouble pressed, IPaletteDouble tracking, IPaletteDouble checkedNormal, IPaletteDouble checkedPressed, IPaletteDouble checkedTracking, IPaletteDouble focusOverride, IPaletteDouble normalDefaultOverride ) : System
target IPalette Initial palette target for redirection.
disabled IPaletteDouble Redirection for disabled state requests.
normal IPaletteDouble Redirection for normal state requests.
pressed IPaletteDouble Redirection for pressed state requests.
tracking IPaletteDouble Redirection for tracking state requests.
checkedNormal IPaletteDouble Redirection for checked normal state requests.
checkedPressed IPaletteDouble Redirection for checked pressed state requests.
checkedTracking IPaletteDouble Redirection for checked tracking state requests.
focusOverride IPaletteDouble Redirection for focus override state requests.
normalDefaultOverride IPaletteDouble 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 ( IPaletteDouble disabled, IPaletteDouble normal ) : void
disabled IPaletteDouble Redirection for disabled state requests.
normal IPaletteDouble Redirection for normal state requests.
return void

SetRedirectStates() public method

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