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

Create and manage the view for a ButtonSpec definition.
Наследование: GlobalId, IContentValues
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ButtonSpecView ( PaletteRedirect redirector, IPaletteMetric paletteMetric, PaletteMetricPadding metricPadding, ButtonSpecManagerBase manager, ButtonSpec buttonSpec ) : System

Initialize a new instance of the ButtonSpecView class.

CreateController ( ViewDrawButton viewButton, NeedPaintHandler needPaint, MouseEventHandler clickHandler ) : ButtonSpecViewControllers

Create a button controller for the view.

Destruct ( ) : void

Destruct the previously created views.

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.

PerformNeedPaint ( bool needLayout ) : void

Requests a repaint and optional layout be performed.

UpdateButtonStyle ( ) : void

Update the button style to reflect new button style setting.

UpdateChecked ( ) : bool

Update view button to reflect new button checked setting.

UpdateEnabled ( ) : bool

Update view button to reflect new button enabled setting.

UpdateVisible ( ) : bool

Update view button to reflect new button visible setting.

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

Метод Описание
OnFinishDelegate ( object sender, EventArgs e ) : void

Processes the finish of the button being pressed.

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

Метод Описание
OnClick ( object sender, MouseEventArgs e ) : void
OnKryptonContextMenuClosed ( object sender, System.Windows.Forms.ToolStripDropDownClosedEventArgs e ) : void
OnNeedPaint ( object sender, NeedLayoutEventArgs e ) : void
OnPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

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

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

Initialize a new instance of the ButtonSpecView class.
public ButtonSpecView ( PaletteRedirect redirector, IPaletteMetric paletteMetric, PaletteMetricPadding metricPadding, ButtonSpecManagerBase manager, ButtonSpec buttonSpec ) : System
redirector PaletteRedirect Palette redirector.
paletteMetric IPaletteMetric Source for metric values.
metricPadding PaletteMetricPadding Padding metric for border padding.
manager ButtonSpecManagerBase Reference to owning manager.
buttonSpec ButtonSpec Access
Результат System

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

Create a button controller for the view.
public CreateController ( ViewDrawButton viewButton, NeedPaintHandler needPaint, MouseEventHandler clickHandler ) : ButtonSpecViewControllers
viewButton ViewDrawButton View to be controlled.
needPaint NeedPaintHandler Paint delegate.
clickHandler MouseEventHandler Reference to click handler.
Результат ButtonSpecViewControllers

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

Destruct the previously created views.
public Destruct ( ) : void
Результат void

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

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

Processes the finish of the button being pressed.
protected OnFinishDelegate ( object sender, EventArgs e ) : void
sender object Source of the event.
e System.EventArgs An EventArgs that contains the event data.
Результат void

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

Requests a repaint and optional layout be performed.
public PerformNeedPaint ( bool needLayout ) : void
needLayout bool Does the palette change require a layout.
Результат void

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

Update the button style to reflect new button style setting.
public UpdateButtonStyle ( ) : void
Результат void

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

Update view button to reflect new button checked setting.
public UpdateChecked ( ) : bool
Результат bool

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

Update view button to reflect new button enabled setting.
public UpdateEnabled ( ) : bool
Результат bool

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

Update view button to reflect new button visible setting.
public UpdateVisible ( ) : bool
Результат bool