C# Class ComponentFactory.Krypton.Toolkit.ButtonSpec

Inheritance: System.ComponentModel.Component, IButtonSpecValues, ICloneable
Afficher le fichier Open project: ComponentFactory/Krypton Class Usage Examples

Private Properties

Свойство Type Description
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

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
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

Method Details

ButtonSpec() public méthode

Initialize a new instance of the ButtonSpec class.
public ButtonSpec ( ) : System
Résultat System

Clone() public méthode

Make a clone of this object.
public Clone ( ) : object
Résultat object

ConvertToButtonOrientation() protected méthode

Convert from palette specific button orientation to resolved button orientation.
protected ConvertToButtonOrientation ( PaletteButtonOrientation paletteButtonOrientation ) : ButtonOrientation
paletteButtonOrientation PaletteButtonOrientation Palette specific button orientation.
Résultat ButtonOrientation

ConvertToButtonStyle() protected méthode

Convert from palette specific button style to resolved button style.
protected ConvertToButtonStyle ( PaletteButtonStyle paletteButtonStyle ) : ButtonStyle
paletteButtonStyle PaletteButtonStyle Palette specific button style.
Résultat ButtonStyle

ConvertToRelativeEdgeAlign() protected méthode

Convert from palette specific edge alignment to resolved edge alignment.
protected ConvertToRelativeEdgeAlign ( PaletteRelativeEdgeAlign paletteRelativeEdgeAlign ) : RelativeEdgeAlign
paletteRelativeEdgeAlign PaletteRelativeEdgeAlign Palette specific edge alignment.
Résultat RelativeEdgeAlign

CopyFrom() public méthode

Value copy from the provided source to ourself.
public CopyFrom ( ButtonSpec source ) : void
source ButtonSpec Source instance.
Résultat void

GenerateClick() protected méthode

Generates the Click event.
protected GenerateClick ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
Résultat void

GetChecked() public abstract méthode

Gets the button checked state.
public abstract GetChecked ( IPalette palette ) : ButtonCheckState
palette IPalette Palette to use for inheriting values.
Résultat ButtonCheckState

GetColorMap() public méthode

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.
Résultat Color

GetEdge() public méthode

Gets the edge for the button.
public GetEdge ( IPalette palette ) : RelativeEdgeAlign
palette IPalette Palette to use for inheriting values.
Résultat RelativeEdgeAlign

GetEnabled() public abstract méthode

Gets the button enabled state.
public abstract GetEnabled ( IPalette palette ) : ButtonEnabled
palette IPalette Palette to use for inheriting values.
Résultat ButtonEnabled

GetImage() public méthode

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.
Résultat Image

GetImageTransparentColor() public méthode

Gets the image transparent color.
public GetImageTransparentColor ( IPalette palette ) : Color
palette IPalette Palette to use for inheriting values.
Résultat Color

GetLocation() public méthode

Gets the button location.
public GetLocation ( IPalette palette ) : HeaderLocation
palette IPalette Palette to use for inheriting values.
Résultat HeaderLocation

GetLongText() public méthode

Gets the button long text.
public GetLongText ( IPalette palette ) : string
palette IPalette Palette to use for inheriting values.
Résultat string

GetOrientation() public méthode

Gets the button orienation.
public GetOrientation ( IPalette palette ) : ButtonOrientation
palette IPalette Palette to use for inheriting values.
Résultat ButtonOrientation

GetShortText() public méthode

Gets the button short text.
public GetShortText ( IPalette palette ) : string
palette IPalette Palette to use for inheriting values.
Résultat string

GetStyle() public méthode

Gets the button style.
public GetStyle ( IPalette palette ) : ButtonStyle
palette IPalette Palette to use for inheriting values.
Résultat ButtonStyle

GetToolTipTitle() public méthode

Gets the button tooltip title text.
public GetToolTipTitle ( IPalette palette ) : string
palette IPalette Palette to use for inheriting values.
Résultat string

GetView() public méthode

Get the current view associated with the button spec.
public GetView ( ) : ViewBase
Résultat ViewBase

GetViewEnabled() public méthode

Gets a value indicating if the associated view is enabled.
public GetViewEnabled ( ) : bool
Résultat bool

GetVisible() public abstract méthode

Gets the button visible value.
public abstract GetVisible ( IPalette palette ) : bool
palette IPalette Palette to use for inheriting values.
Résultat bool

OnButtonSpecPropertyChanged() protected méthode

Raises the ButtonSpecPropertyChanged event.
protected OnButtonSpecPropertyChanged ( string propertyName ) : void
propertyName string Name of the appearance property that has changed.
Résultat void

OnClick() protected méthode

Raises the Click event.
protected OnClick ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
Résultat void

OnCommandPropertyChanged() protected méthode

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.
Résultat void

PerformClick() public méthode

Generates a Click event for the control.
public PerformClick ( ) : void
Résultat void

PerformClick() public méthode

Generates a Click event for the control.
public PerformClick ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
Résultat void

ResetAllowInheritExtraText() public méthode

Resets the AllowInheritExtraText property to its default value.
public ResetAllowInheritExtraText ( ) : void
Résultat void

ResetAllowInheritImage() public méthode

Resets the AllowInheritImage property to its default value.
public ResetAllowInheritImage ( ) : void
Résultat void

ResetAllowInheritText() public méthode

Resets the AllowInheritText property to its default value.
public ResetAllowInheritText ( ) : void
Résultat void

ResetAllowInheritToolTipTitle() public méthode

Resets the AllowInheritToolTipTitle property to its default value.
public ResetAllowInheritToolTipTitle ( ) : void
Résultat void

ResetColorMap() public méthode

Resets the ColorMap property to its default value.
public ResetColorMap ( ) : void
Résultat void

ResetExtraText() public méthode

Resets the ExtraText property to its default value.
public ResetExtraText ( ) : void
Résultat void

ResetImage() public méthode

Resets the Image property to its default value.
public ResetImage ( ) : void
Résultat void

ResetImageTransparentColor() public méthode

Resets the ImageTransparentColor property to its default value.
public ResetImageTransparentColor ( ) : void
Résultat void

ResetOrientation() public méthode

Resets the Orientation property to its default value.
public ResetOrientation ( ) : void
Résultat void

ResetStyle() public méthode

Resets the Style property to its default value.
public ResetStyle ( ) : void
Résultat void

ResetText() public méthode

Resets the Text property to its default value.
public ResetText ( ) : void
Résultat void

ResetToolTipBody() public méthode

Resets the ToolTipBody property to its default value.
public ResetToolTipBody ( ) : void
Résultat void

ResetToolTipImage() public méthode

Resets the ToolTipImage property to its default value.
public ResetToolTipImage ( ) : void
Résultat void

ResetToolTipImageTransparentColor() public méthode

Resets the ToolTipImageTransparentColor property to its default value.
public ResetToolTipImageTransparentColor ( ) : void
Résultat void

ResetToolTipStyle() public méthode

Resets the ToolTipStyle property to its default value.
public ResetToolTipStyle ( ) : void
Résultat void

ResetToolTipTitle() public méthode

Resets the ToolTipTitle property to its default value.
public ResetToolTipTitle ( ) : void
Résultat void

ResetUniqueName() public méthode

Resets the UniqueName property to its default value.
public ResetUniqueName ( ) : void
Résultat void

SetView() public méthode

Sets the current view associated with the button spec.
public SetView ( ViewBase view ) : void
view ViewBase View element reference.
Résultat void

ToString() public méthode

Returns a string that represents the current defaulted state.
public ToString ( ) : string
Résultat string