C# Класс ComponentFactory.Krypton.Toolkit.ColorButtonValues

Storage for color button content value information.
Наследование: Storage, IContentValues
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
ShouldSerializeExtraText bool
ShouldSerializeImage bool
ShouldSerializeImageStates bool
ShouldSerializeImageTransparentColor bool
ShouldSerializeText bool

Открытые методы

Метод Описание
ColorButtonValues ( NeedPaintHandler needPaint ) : System

Initialize a new instance of the ColorButtonValues 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.

Защищенные методы

Метод Описание
CreateImageStates ( ) : ButtonImageStates

Create the storage for the image states.

Приватные методы

Метод Описание
ShouldSerializeExtraText ( ) : bool
ShouldSerializeImage ( ) : bool
ShouldSerializeImageStates ( ) : bool
ShouldSerializeImageTransparentColor ( ) : bool
ShouldSerializeText ( ) : bool

Описание методов

ColorButtonValues() публичный Метод

Initialize a new instance of the ColorButtonValues class.
public ColorButtonValues ( NeedPaintHandler needPaint ) : System
needPaint NeedPaintHandler Delegate for notifying paint requests.
Результат System

CreateImageStates() защищенный Метод

Create the storage for the image states.
protected CreateImageStates ( ) : ButtonImageStates
Результат ButtonImageStates

GetImage() публичный Метод

Gets the content image.
public GetImage ( PaletteState state ) : Image
state PaletteState The state for which the image is needed.
Результат Image

GetImageTransparentColor() публичный Метод

Gets the content image transparent color.
public GetImageTransparentColor ( PaletteState state ) : Color
state PaletteState The state for which the image color is needed.
Результат Color

GetLongText() публичный Метод

Gets the content long text.
public GetLongText ( ) : string
Результат string

GetShortText() публичный Метод

Gets the content short text.
public GetShortText ( ) : string
Результат string

ResetExtraText() публичный Метод

Resets the Description property to its default value.
public ResetExtraText ( ) : void
Результат void

ResetImage() публичный Метод

Resets the Image property to its default value.
public ResetImage ( ) : void
Результат void

ResetImageTransparentColor() публичный Метод

Resets the ImageTransparentColor property to its default value.
public ResetImageTransparentColor ( ) : void
Результат void

ResetText() публичный Метод

Resets the Text property to its default value.
public ResetText ( ) : void
Результат void