Xceed DataGrid for WPF v7.3 Documentation
Xceed.Wpf.Controls Assembly / Xceed.Wpf.Controls Namespace / MaskedTextBox Class / IncludeLiteralsInValue Property


In This Topic
    IncludeLiteralsInValue Property
    In This Topic
    Gets or sets a value indicating if literal characters in the input mask should be used to calculate the numeric value of the input text.
    Syntax
    'Declaration
     
    Public Property IncludeLiteralsInValue As Boolean
    'Usage
     
    Dim instance As MaskedTextBox
    Dim value As Boolean
     
    instance.IncludeLiteralsInValue = value
     
    value = instance.IncludeLiteralsInValue
    public bool IncludeLiteralsInValue {get; set;}

    Property Value

    true if literal characters in the input mask should be used to calculate the numeric value of the input text; false otherwise. By default, true.
    Remarks

    ValueDataType must be set to a numeric type in order to correctly calculate the value from the input text and place the result in Value.

    The purpose of this property is to allow the negative sign ("-") to be used in a MaskedTextBox and to have it included in the calculated numeric value of the input text.

    Requirements

    Target Platforms: Windows 11, Windows, 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also