C# Class Prizm.Main.Common.ControlMaskExtensions

Show file Open project: AleksMorozova/prizm

Public Methods

Method Description
SetFloatMask ( this edit, int digitsBeforeDecimaPoint, bool canBeNegative = false ) : void

set mask mode and mask to text control for entering float number

SetGPSMaskLatitude ( this edit, int digitsBeforeDecimaPoint, int maxValue ) : void

set mask for GPS Latitude

SetGPSMaskLongitude ( this edit, int digitsBeforeDecimaPoint, int maxValue ) : void

set mask for GPS Longitude

SetMask ( this edit, string regExpMask ) : void

set mask mode and mask to text control. No placeholders.

Private Methods

Method Description
SetUpMask ( DevExpress mask, int digitsBeforeDecimaPoint, bool canBeNegative ) : void

set mask mode and mask. No placeholders.

Method Details

SetFloatMask() public static method

set mask mode and mask to text control for entering float number
public static SetFloatMask ( this edit, int digitsBeforeDecimaPoint, bool canBeNegative = false ) : void
edit this text edit to extend
digitsBeforeDecimaPoint int number of digits before decima point
canBeNegative bool
return void

SetGPSMaskLatitude() public static method

set mask for GPS Latitude
public static SetGPSMaskLatitude ( this edit, int digitsBeforeDecimaPoint, int maxValue ) : void
edit this text edit to extend
digitsBeforeDecimaPoint int number of digits before decima point
maxValue int
return void

SetGPSMaskLongitude() public static method

set mask for GPS Longitude
public static SetGPSMaskLongitude ( this edit, int digitsBeforeDecimaPoint, int maxValue ) : void
edit this text edit to extend
digitsBeforeDecimaPoint int number of digits before decima point
maxValue int
return void

SetMask() public static method

set mask mode and mask to text control. No placeholders.
public static SetMask ( this edit, string regExpMask ) : void
edit this text edit to extend
regExpMask string mask ready to apply to control
return void