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

Наследование: System.ComponentModel.Component, IButtonSpecValues, ICloneable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
OnImageStateChanged void
ResetEdge void
ShouldSerializeColorMap bool
ShouldSerializeEdge bool
ShouldSerializeExtraText bool
ShouldSerializeImage bool
ShouldSerializeImageStates bool
ShouldSerializeImageTransparentColor bool
ShouldSerializeOrientation bool
ShouldSerializeStyle bool
ShouldSerializeText bool
ShouldSerializeToolTipBody bool
ShouldSerializeToolTipImage bool
ShouldSerializeToolTipImageTransparentColor bool
ShouldSerializeToolTipStyle bool
ShouldSerializeToolTipTitle bool

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

Метод Описание
ButtonSpec ( ) : System

Initialize a new instance of the ButtonSpec class.

Clone ( ) : object

Make a clone of this object.

CopyFrom ( ButtonSpec source ) : void

Value copy from the provided source to ourself.

GetChecked ( IPalette palette ) : ButtonCheckState

Gets the button checked state.

GetColorMap ( IPalette palette ) : Color

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

GetEdge ( IPalette palette ) : RelativeEdgeAlign

Gets the edge for the button.

GetEnabled ( IPalette palette ) : ButtonEnabled

Gets the button enabled state.

GetImage ( IPalette palette, PaletteState state ) : Image

Gets the button image.

GetImageTransparentColor ( IPalette palette ) : Color

Gets the image transparent color.

GetLocation ( IPalette palette ) : HeaderLocation

Gets the button location.

GetLongText ( IPalette palette ) : string

Gets the button long text.

GetOrientation ( IPalette palette ) : ButtonOrientation

Gets the button orienation.

GetShortText ( IPalette palette ) : string

Gets the button short text.

GetStyle ( IPalette palette ) : ButtonStyle

Gets the button style.

GetToolTipTitle ( IPalette palette ) : string

Gets the button tooltip title text.

GetView ( ) : ViewBase

Get the current view associated with the button spec.

GetViewEnabled ( ) : bool

Gets a value indicating if the associated view is enabled.

GetVisible ( IPalette palette ) : bool

Gets the button visible value.

PerformClick ( ) : void

Generates a Click event for the control.

PerformClick ( EventArgs e ) : void

Generates a Click event for the control.

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.

ResetImageTransparentColor ( ) : void

Resets the ImageTransparentColor property to its default value.

ResetOrientation ( ) : void

Resets the Orientation property to its default value.

ResetStyle ( ) : void

Resets the Style property to its default value.

ResetText ( ) : void

Resets the Text property to its default value.

ResetToolTipBody ( ) : void

Resets the ToolTipBody property to its default value.

ResetToolTipImage ( ) : void

Resets the ToolTipImage property to its default value.

ResetToolTipImageTransparentColor ( ) : void

Resets the ToolTipImageTransparentColor property to its default value.

ResetToolTipStyle ( ) : void

Resets the ToolTipStyle property to its default value.

ResetToolTipTitle ( ) : void

Resets the ToolTipTitle property to its default value.

ResetUniqueName ( ) : void

Resets the UniqueName property to its default value.

SetView ( ViewBase view ) : void

Sets the current view associated with the button spec.

ToString ( ) : string

Returns a string that represents the current defaulted state.

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

Метод Описание
ConvertToButtonOrientation ( PaletteButtonOrientation paletteButtonOrientation ) : ButtonOrientation

Convert from palette specific button orientation to resolved button orientation.

ConvertToButtonStyle ( PaletteButtonStyle paletteButtonStyle ) : ButtonStyle

Convert from palette specific button style to resolved button style.

ConvertToRelativeEdgeAlign ( PaletteRelativeEdgeAlign paletteRelativeEdgeAlign ) : RelativeEdgeAlign

Convert from palette specific edge alignment to resolved edge alignment.

GenerateClick ( EventArgs e ) : void

Generates the Click event.

OnButtonSpecPropertyChanged ( string propertyName ) : void

Raises the ButtonSpecPropertyChanged event.

OnClick ( EventArgs e ) : void

Raises the Click event.

OnCommandPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles a change in the property of an attached command.

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

Метод Описание
OnImageStateChanged ( object sender, NeedLayoutEventArgs e ) : void
ResetEdge ( ) : void
ShouldSerializeColorMap ( ) : bool
ShouldSerializeEdge ( ) : bool
ShouldSerializeExtraText ( ) : bool
ShouldSerializeImage ( ) : bool
ShouldSerializeImageStates ( ) : bool
ShouldSerializeImageTransparentColor ( ) : bool
ShouldSerializeOrientation ( ) : bool
ShouldSerializeStyle ( ) : bool
ShouldSerializeText ( ) : bool
ShouldSerializeToolTipBody ( ) : bool
ShouldSerializeToolTipImage ( ) : bool
ShouldSerializeToolTipImageTransparentColor ( ) : bool
ShouldSerializeToolTipStyle ( ) : bool
ShouldSerializeToolTipTitle ( ) : bool

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

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

Initialize a new instance of the ButtonSpec class.
public ButtonSpec ( ) : System
Результат System

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

Make a clone of this object.
public Clone ( ) : object
Результат object

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

Convert from palette specific button orientation to resolved button orientation.
protected ConvertToButtonOrientation ( PaletteButtonOrientation paletteButtonOrientation ) : ButtonOrientation
paletteButtonOrientation PaletteButtonOrientation Palette specific button orientation.
Результат ButtonOrientation

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

Convert from palette specific button style to resolved button style.
protected ConvertToButtonStyle ( PaletteButtonStyle paletteButtonStyle ) : ButtonStyle
paletteButtonStyle PaletteButtonStyle Palette specific button style.
Результат ButtonStyle

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

Convert from palette specific edge alignment to resolved edge alignment.
protected ConvertToRelativeEdgeAlign ( PaletteRelativeEdgeAlign paletteRelativeEdgeAlign ) : RelativeEdgeAlign
paletteRelativeEdgeAlign PaletteRelativeEdgeAlign Palette specific edge alignment.
Результат RelativeEdgeAlign

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

Value copy from the provided source to ourself.
public CopyFrom ( ButtonSpec source ) : void
source ButtonSpec Source instance.
Результат void

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

Generates the Click event.
protected GenerateClick ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
Результат void

GetChecked() публичный абстрактный Метод

Gets the button checked state.
public abstract GetChecked ( IPalette palette ) : ButtonCheckState
palette IPalette Palette to use for inheriting values.
Результат ButtonCheckState

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

Gets the color to remap from the image to the container foreground.
public GetColorMap ( IPalette palette ) : Color
palette IPalette Palette to use for inheriting values.
Результат Color

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

Gets the edge for the button.
public GetEdge ( IPalette palette ) : RelativeEdgeAlign
palette IPalette Palette to use for inheriting values.
Результат RelativeEdgeAlign

GetEnabled() публичный абстрактный Метод

Gets the button enabled state.
public abstract GetEnabled ( IPalette palette ) : ButtonEnabled
palette IPalette Palette to use for inheriting values.
Результат ButtonEnabled

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

Gets the button image.
public GetImage ( IPalette palette, PaletteState state ) : Image
palette IPalette Palette to use for inheriting values.
state PaletteState State for which an image is needed.
Результат Image

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

Gets the image transparent color.
public GetImageTransparentColor ( IPalette palette ) : Color
palette IPalette Palette to use for inheriting values.
Результат Color

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

Gets the button location.
public GetLocation ( IPalette palette ) : HeaderLocation
palette IPalette Palette to use for inheriting values.
Результат HeaderLocation

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

Gets the button long text.
public GetLongText ( IPalette palette ) : string
palette IPalette Palette to use for inheriting values.
Результат string

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

Gets the button orienation.
public GetOrientation ( IPalette palette ) : ButtonOrientation
palette IPalette Palette to use for inheriting values.
Результат ButtonOrientation

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

Gets the button short text.
public GetShortText ( IPalette palette ) : string
palette IPalette Palette to use for inheriting values.
Результат string

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

Gets the button style.
public GetStyle ( IPalette palette ) : ButtonStyle
palette IPalette Palette to use for inheriting values.
Результат ButtonStyle

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

Gets the button tooltip title text.
public GetToolTipTitle ( IPalette palette ) : string
palette IPalette Palette to use for inheriting values.
Результат string

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

Get the current view associated with the button spec.
public GetView ( ) : ViewBase
Результат ViewBase

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

Gets a value indicating if the associated view is enabled.
public GetViewEnabled ( ) : bool
Результат bool

GetVisible() публичный абстрактный Метод

Gets the button visible value.
public abstract GetVisible ( IPalette palette ) : bool
palette IPalette Palette to use for inheriting values.
Результат bool

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

Raises the ButtonSpecPropertyChanged event.
protected OnButtonSpecPropertyChanged ( string propertyName ) : void
propertyName string Name of the appearance property that has changed.
Результат void

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

Raises the Click event.
protected OnClick ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
Результат void

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

Handles a change in the property of an attached command.
protected OnCommandPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
sender object Source of the event.
e System.ComponentModel.PropertyChangedEventArgs A PropertyChangedEventArgs that contains the event data.
Результат void

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

Generates a Click event for the control.
public PerformClick ( ) : void
Результат void

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

Generates a Click event for the control.
public PerformClick ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
Результат void

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Sets the current view associated with the button spec.
public SetView ( ViewBase view ) : void
view ViewBase View element reference.
Результат void

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

Returns a string that represents the current defaulted state.
public ToString ( ) : string
Результат string