C# Class ComponentFactory.Krypton.Toolkit.ButtonSpecAny

Button specification that can be assigned as any button type.
Inheritance: ButtonSpec
Datei anzeigen Open project: ComponentFactory/Krypton Class Usage Examples

Private Properties

Property Type Description
ShouldSerializeChecked bool

Public Methods

Method Description
ButtonSpecAny ( ) : System

Initialize a new instance of the AnyButtonSpec class.

Clone ( ) : object

Make a clone of this object.

CopyFrom ( ButtonSpecAny source ) : void

Value copy form the provided source to ourself.

GetChecked ( IPalette palette ) : ButtonCheckState

Gets the button checked state.

GetEnabled ( IPalette palette ) : ButtonEnabled

Gets the button enabled state.

GetVisible ( IPalette palette ) : bool

Gets the button visible value.

ResetChecked ( ) : void

Resets the Checked property to its default value.

ResetEnabled ( ) : void

Resets the Enabled property to its default value.

ResetType ( ) : void

Resets the Type property to its default value.

ResetVisible ( ) : void

Resets the Visible property to its default value.

Protected Methods

Method Description
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

Method Description
ShouldSerializeChecked ( ) : bool

Method Details

ButtonSpecAny() public method

Initialize a new instance of the AnyButtonSpec class.
public ButtonSpecAny ( ) : System
return System

Clone() public method

Make a clone of this object.
public Clone ( ) : object
return object

CopyFrom() public method

Value copy form the provided source to ourself.
public CopyFrom ( ButtonSpecAny source ) : void
source ButtonSpecAny Source instance.
return void

GetChecked() public method

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

GetEnabled() public method

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

GetVisible() public method

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

OnButtonSpecPropertyChanged() protected method

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

OnClick() protected method

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

OnCommandPropertyChanged() protected method

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.
return void

ResetChecked() public method

Resets the Checked property to its default value.
public ResetChecked ( ) : void
return void

ResetEnabled() public method

Resets the Enabled property to its default value.
public ResetEnabled ( ) : void
return void

ResetType() public method

Resets the Type property to its default value.
public ResetType ( ) : void
return void

ResetVisible() public method

Resets the Visible property to its default value.
public ResetVisible ( ) : void
return void