C# Class SIL.FieldWorks.FwCoreDlgControls.UpDownMeasureControl

The UpDownMeasureControl is a spinner control that handles measurements (in, cm, pt, etc)
Inheritance: System.Windows.Forms.UpDownBase, IFWDisposable
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Private Properties

Свойство Type Description
NudgeValue void
SetMsrValue void

Méthodes publiques

Méthode Description
CheckDisposed ( ) : void

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.

DownButton ( ) : void

Handles the clicking of the down button on the spin box.

UpButton ( ) : void

Handles the clicking of the up button on the spin box.

UpDownMeasureControl ( ) : System

Initializes a new instance of the T:UpDownMeasureControl class.

Méthodes protégées

Méthode Description
OnLostFocus ( EventArgs e ) : void

When focus is lost, validate the text since it may have been edited

UpdateEditText ( ) : void

Updates the text displayed in the spin box.

ValidateEditText ( ) : void

Validates the text displayed in the spin box.

Private Methods

Méthode Description
NudgeValue ( int sign ) : void

Nudges the value up or down. If the current value is at a multiple of the increment amount, just increment/decrement it; otherwise bump it up/down to the next multiple.

SetMsrValue ( double mptValue ) : void

Sets the value of the measurement.

Method Details

CheckDisposed() public méthode

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.
public CheckDisposed ( ) : void
Résultat void

DownButton() public méthode

Handles the clicking of the down button on the spin box.
public DownButton ( ) : void
Résultat void

OnLostFocus() protected méthode

When focus is lost, validate the text since it may have been edited
protected OnLostFocus ( EventArgs e ) : void
e System.EventArgs
Résultat void

UpButton() public méthode

Handles the clicking of the up button on the spin box.
public UpButton ( ) : void
Résultat void

UpDownMeasureControl() public méthode

Initializes a new instance of the T:UpDownMeasureControl class.
public UpDownMeasureControl ( ) : System
Résultat System

UpdateEditText() protected méthode

Updates the text displayed in the spin box.
protected UpdateEditText ( ) : void
Résultat void

ValidateEditText() protected méthode

Validates the text displayed in the spin box.
protected ValidateEditText ( ) : void
Résultat void