C# Class ComponentFactory.Krypton.Toolkit.ButtonValues

Storage for button content value information.
Inheritance: Storage, IContentValues
Datei anzeigen Open project: ComponentFactory/Krypton Class Usage Examples

Private Properties

Property Type Description
ShouldSerializeExtraText bool
ShouldSerializeImage bool
ShouldSerializeImageStates bool
ShouldSerializeImageTransparentColor bool
ShouldSerializeText bool

Public Methods

Method Description
ButtonValues ( NeedPaintHandler needPaint ) : System

Initialize a new instance of the ButtonValues class.

GetImage ( PaletteState state ) : Image

Gets the content image.

GetImageTransparentColor ( PaletteState state ) : Color

Gets the content image transparent color.

GetLongText ( ) : string

Gets the content long text.

GetShortText ( ) : string

Gets the content short text.

ResetExtraText ( ) : void

Resets the Description property to its default value.

ResetImage ( ) : void

Resets the Image property to its default value.

ResetImageTransparentColor ( ) : void

Resets the ImageTransparentColor property to its default value.

ResetText ( ) : void

Resets the Text property to its default value.

Protected Methods

Method Description
CreateImageStates ( ) : ButtonImageStates

Create the storage for the image states.

Private Methods

Method Description
ShouldSerializeExtraText ( ) : bool
ShouldSerializeImage ( ) : bool
ShouldSerializeImageStates ( ) : bool
ShouldSerializeImageTransparentColor ( ) : bool
ShouldSerializeText ( ) : bool

Method Details

ButtonValues() public method

Initialize a new instance of the ButtonValues class.
public ButtonValues ( NeedPaintHandler needPaint ) : System
needPaint NeedPaintHandler Delegate for notifying paint requests.
return System

CreateImageStates() protected method

Create the storage for the image states.
protected CreateImageStates ( ) : ButtonImageStates
return ButtonImageStates

GetImage() public method

Gets the content image.
public GetImage ( PaletteState state ) : Image
state PaletteState The state for which the image is needed.
return Image

GetImageTransparentColor() public method

Gets the content image transparent color.
public GetImageTransparentColor ( PaletteState state ) : Color
state PaletteState The state for which the image color is needed.
return Color

GetLongText() public method

Gets the content long text.
public GetLongText ( ) : string
return string

GetShortText() public method

Gets the content short text.
public GetShortText ( ) : string
return string

ResetExtraText() public method

Resets the Description 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

ResetImageTransparentColor() public method

Resets the ImageTransparentColor property to its default value.
public ResetImageTransparentColor ( ) : void
return void

ResetText() public method

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