C# Class ComponentFactory.Krypton.Toolkit.KryptonPaletteButtonSpecTyped

Overrides for defining typed button specifications.
Inheritance: KryptonPaletteButtonSpecBase
Mostra file Open project: ComponentFactory/Krypton Class Usage Examples

Private Properties

Property Type Description
KryptonPaletteButtonSpecTyped System
OnImageStateChanged void
ShouldSerializeColorMap bool
ShouldSerializeExtraText bool
ShouldSerializeImage bool
ShouldSerializeImageStates bool
ShouldSerializeText bool
ShouldSerializeToolTipTitle bool

Public Methods

Method Description
GetButtonSpecColorMap ( PaletteButtonSpecStyle style ) : Color

Gets the color to remap from the image to the container foreground.

GetButtonSpecImage ( PaletteButtonSpecStyle style, PaletteState state ) : Image

Gets the image to display for the button.

GetButtonSpecLongText ( PaletteButtonSpecStyle style ) : string

Gets the long text to display for the button.

GetButtonSpecShortText ( PaletteButtonSpecStyle style ) : string

Gets the short text to display for the button.

GetButtonSpecToolTipTitle ( PaletteButtonSpecStyle style ) : string

Gets the tooltip title text to display for the button.

PopulateFromBase ( PaletteButtonSpecStyle style ) : void

Populate values from the base palette.

ResetAllowInheritExtraText ( ) : void

Resets the AllowInheritExtraText property to its default value.

ResetAllowInheritImage ( ) : void

Resets the AllowInheritImage property to its default value.

ResetAllowInheritText ( ) : void

Resets the AllowInheritText property to its default value.

ResetAllowInheritToolTipTitle ( ) : void

Resets the AllowInheritToolTipTitle property to its default value.

ResetColorMap ( ) : void

Resets the ColorMap property to its default value.

ResetExtraText ( ) : void

Resets the ExtraText property to its default value.

ResetImage ( ) : void

Resets the Image property to its default value.

ResetText ( ) : void

Resets the Text property to its default value.

ResetToolTipTitle ( ) : void

Resets the ToolTipTitle property to its default value.

Private Methods

Method Description
KryptonPaletteButtonSpecTyped ( PaletteRedirect redirector ) : System

Initialize a new instance of the KryptonPaletteButtonSpecCommon class.

OnImageStateChanged ( object sender, NeedLayoutEventArgs e ) : void
ShouldSerializeColorMap ( ) : bool
ShouldSerializeExtraText ( ) : bool
ShouldSerializeImage ( ) : bool
ShouldSerializeImageStates ( ) : bool
ShouldSerializeText ( ) : bool
ShouldSerializeToolTipTitle ( ) : bool

Method Details

GetButtonSpecColorMap() public method

Gets the color to remap from the image to the container foreground.
public GetButtonSpecColorMap ( PaletteButtonSpecStyle style ) : Color
style PaletteButtonSpecStyle Style of button spec.
return Color

GetButtonSpecImage() public method

Gets the image to display for the button.
public GetButtonSpecImage ( PaletteButtonSpecStyle style, PaletteState state ) : Image
style PaletteButtonSpecStyle Style of button spec.
state PaletteState State for which image is required.
return Image

GetButtonSpecLongText() public method

Gets the long text to display for the button.
public GetButtonSpecLongText ( PaletteButtonSpecStyle style ) : string
style PaletteButtonSpecStyle Style of button spec.
return string

GetButtonSpecShortText() public method

Gets the short text to display for the button.
public GetButtonSpecShortText ( PaletteButtonSpecStyle style ) : string
style PaletteButtonSpecStyle Style of button spec.
return string

GetButtonSpecToolTipTitle() public method

Gets the tooltip title text to display for the button.
public GetButtonSpecToolTipTitle ( PaletteButtonSpecStyle style ) : string
style PaletteButtonSpecStyle Style of button spec.
return string

PopulateFromBase() public method

Populate values from the base palette.
public PopulateFromBase ( PaletteButtonSpecStyle style ) : void
style PaletteButtonSpecStyle The style of the button spec instance.
return void

ResetAllowInheritExtraText() public method

Resets the AllowInheritExtraText property to its default value.
public ResetAllowInheritExtraText ( ) : void
return void

ResetAllowInheritImage() public method

Resets the AllowInheritImage property to its default value.
public ResetAllowInheritImage ( ) : void
return void

ResetAllowInheritText() public method

Resets the AllowInheritText property to its default value.
public ResetAllowInheritText ( ) : void
return void

ResetAllowInheritToolTipTitle() public method

Resets the AllowInheritToolTipTitle property to its default value.
public ResetAllowInheritToolTipTitle ( ) : void
return void

ResetColorMap() public method

Resets the ColorMap property to its default value.
public ResetColorMap ( ) : void
return void

ResetExtraText() public method

Resets the ExtraText property to its default value.
public ResetExtraText ( ) : void
return void

ResetImage() public method

Resets the Image property to its default value.
public ResetImage ( ) : void
return void

ResetText() public method

Resets the Text property to its default value.
public ResetText ( ) : void
return void

ResetToolTipTitle() public method

Resets the ToolTipTitle property to its default value.
public ResetToolTipTitle ( ) : void
return void