C# Class ComponentFactory.Krypton.Toolkit.ButtonSpecAny

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

Private Properties

Свойство Type Description
ShouldSerializeChecked bool

Méthodes publiques

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

Méthodes protégées

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

Méthode Description
ShouldSerializeChecked ( ) : bool

Method Details

ButtonSpecAny() public méthode

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

Clone() public méthode

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

CopyFrom() public méthode

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

GetChecked() public méthode

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

GetEnabled() public méthode

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

GetVisible() public méthode

Gets the button visible value.
public 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

ResetChecked() public méthode

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

ResetEnabled() public méthode

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

ResetType() public méthode

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

ResetVisible() public méthode

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