C# Class ComponentFactory.Krypton.Toolkit.KryptonLabel

Inheritance: VisualSimpleBase, IContentValues
Afficher le fichier Open project: ComponentFactory/Krypton Class Usage Examples

Private Properties

Свойство Type Description
OnLabelTextChanged void
ResetLabelStyle void
ShouldSerializeLabelStyle bool
ShouldSerializeStateCommon bool
ShouldSerializeStateDisabled bool
ShouldSerializeStateNormal bool
ShouldSerializeText bool
ShouldSerializeValues bool

Méthodes publiques

Méthode Description
GetImage ( PaletteState state ) : Image

Gets the content image.

GetImageTransparentColor ( PaletteState state ) : Color

Gets the image color that should be transparent.

GetLongText ( ) : string

Gets the content long text.

GetShortText ( ) : string

Gets the content short text.

KryptonLabel ( ) : System

Initialize a new instance of the KryptonLabel class.

ResetText ( ) : void

Resets the Text property to its default value.

SetFixedState ( PaletteState state ) : void

Fix the control to a particular palette state.

Méthodes protégées

Méthode Description
EvalTransparentPaint ( ) : bool

Work out if this control needs to paint transparent areas.

OnClick ( EventArgs e ) : void

Raises the Click event.

OnCommandPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles a change in the property of an attached command.

OnEnabledChanged ( EventArgs e ) : void

Raises the EnabledChanged event.

OnKryptonCommandChanged ( EventArgs e ) : void

Raises the KryptonCommandChanged event.

ProcessMnemonic ( char charCode ) : bool

Processes a mnemonic character.

SetLabelStyle ( LabelStyle style ) : void

Update the view elements based on the requested label style.

Private Methods

Méthode Description
OnLabelTextChanged ( object sender, EventArgs e ) : void
ResetLabelStyle ( ) : void
ShouldSerializeLabelStyle ( ) : bool
ShouldSerializeStateCommon ( ) : bool
ShouldSerializeStateDisabled ( ) : bool
ShouldSerializeStateNormal ( ) : bool
ShouldSerializeText ( ) : bool
ShouldSerializeValues ( ) : bool

Method Details

EvalTransparentPaint() protected méthode

Work out if this control needs to paint transparent areas.
protected EvalTransparentPaint ( ) : bool
Résultat bool

GetImage() public méthode

Gets the content image.
public GetImage ( PaletteState state ) : Image
state PaletteState The state for which the image is needed.
Résultat Image

GetImageTransparentColor() public méthode

Gets the image color that should be transparent.
public GetImageTransparentColor ( PaletteState state ) : Color
state PaletteState The state for which the image is needed.
Résultat Color

GetLongText() public méthode

Gets the content long text.
public GetLongText ( ) : string
Résultat string

GetShortText() public méthode

Gets the content short text.
public GetShortText ( ) : string
Résultat string

KryptonLabel() public méthode

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

OnClick() protected méthode

Raises the Click event.
protected OnClick ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains 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

OnEnabledChanged() protected méthode

Raises the EnabledChanged event.
protected OnEnabledChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data.
Résultat void

OnKryptonCommandChanged() protected méthode

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

ProcessMnemonic() protected méthode

Processes a mnemonic character.
protected ProcessMnemonic ( char charCode ) : bool
charCode char The mnemonic character entered.
Résultat bool

ResetText() public méthode

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

SetFixedState() public méthode

Fix the control to a particular palette state.
public SetFixedState ( PaletteState state ) : void
state PaletteState Palette state to fix.
Résultat void

SetLabelStyle() protected méthode

Update the view elements based on the requested label style.
protected SetLabelStyle ( LabelStyle style ) : void
style LabelStyle New label style.
Résultat void