C# Class ComponentFactory.Krypton.Toolkit.PaletteRedirectBorderEdge

Redirect border based on the incoming state of the request.
Inheritance: PaletteRedirect
Mostrar archivo Open project: ComponentFactory/Krypton

Public Methods

Method Description
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.

PaletteRedirectBorderEdge ( IPalette target ) : System

Initialize a new instance of the PaletteRedirectBorderEdge class.

PaletteRedirectBorderEdge ( IPalette target, PaletteBorderEdge disabled, PaletteBorderEdge normal ) : System

Initialize a new instance of the PaletteRedirectBorderEdge class.

ResetRedirectStates ( ) : void

Reset the redirection states to null.

SetRedirectStates ( PaletteBorderEdge disabled, PaletteBorderEdge normal ) : void

Set the redirection states.

Private Methods

Method Description
GetInherit ( PaletteState state ) : PaletteBorderEdge

Method Details

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

PaletteRedirectBorderEdge() public method

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

PaletteRedirectBorderEdge() public method

Initialize a new instance of the PaletteRedirectBorderEdge class.
public PaletteRedirectBorderEdge ( IPalette target, PaletteBorderEdge disabled, PaletteBorderEdge normal ) : System
target IPalette Initial palette target for redirection.
disabled PaletteBorderEdge Redirection for disabled state requests.
normal PaletteBorderEdge Redirection for normal 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 ( PaletteBorderEdge disabled, PaletteBorderEdge normal ) : void
disabled PaletteBorderEdge Redirection for disabled state requests.
normal PaletteBorderEdge Redirection for normal state requests.
return void