LongRangeMaskPart
Class
Represents a MaskPart which accepts numbers in a specified range.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
C#
[ClientScriptResource("Telerik.Web.UI.Input.MaskedTextBox.MaskParts.LongRangeMaskPart", "Telerik.Web.UI.Input.MaskedTextBox.MaskParts.RadLongRangeMaskPart.js")]
public class LongRangeMaskPart : MaskPart
Inheritance: objectMaskPartLongRangeMaskPart
Inherited Members
Example:
This example demonstrates how to add a LongRangeMaskPart object in the MaskParts collection of RadMaskedTextBox.
csharp
private void Page_Load(object sender, System.EventArgs e)
{
LongRangeMaskPart rangePart = new LongRangeMaskPart();
rangePart.LowerLimit = 0;
rangePart.UpperLimit = 255;
RadMaskedTextBox1.MaskParts.Add(rangePart);
}
csharp
Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim rangePart As New LongRangeMaskPart()
rangePart.LowerLimit = 0
rangePart.UpperLimit = 255
RadMaskedTextBox1.MaskParts.Add(rangePart)
End Sub
Constructors
C#
public LongRangeMaskPart()
Properties
Gets or sets the smallest possible value the part can accept.
C#
public long LowerLimit { get; set; }
An integer representing the smallest acceptable number that the LongRangeMaskPart can accept. The default value is 0.
Gets or sets the largest possible value the part can accept.
C#
public long UpperLimit { get; set; }
An integer representing the largest acceptable number that the LongRangeMaskPart can accept. The default value is 0.
Methods
Returns the friendly name of the part.