HeaderPane
Main
Hide
Share Link
Print

TextNoLiterals Property, SftMask Class

Defines the contents without the literals.

Class: SftMask
Namespace: Softelvdm.SftMaskNET
Assembly: Softelvdm.SftMaskNET

Syntax

public string TextNoLiterals { get; set; }
Public Property TextNoLiterals As String

Value

The input only; empty input positions are spaces. A numeric field contributes its number without group separators and without the empty positions in front of it, a negative number with a minus sign, or nothing when the field is empty.

Comments

Defines the contents without the literals.

Examples

C# View entire sample code

        }

        // The text of the field with the input focus, in two forms, and its value.
        private void ShowValues(SftMask field) {
            if (field.UseSystemPasswordChar) {
                labelValues.Text = "Text: (not shown)";
                return;
            }
            labelValues.Text = "Text: \"" + field.Text + "\"    TextNoLiterals: \"" + field.TextNoLiterals + "\"    Value: " +
                (field.Value.HasValue ? field.Value.Value.ToString(field.Culture) : "(none)");
        }

        private void sftMaskColor_ValueChanged(object sender, EventArgs e) {
            ShowColor();
        }

VB.NET View entire sample code

        If field.UseSystemPasswordChar Then
            LabelValues.Text = "Text: (not shown)"
            Return
        End If
        Dim value As String = "(none)"
        If field.Value.HasValue Then
            value = field.Value.Value.ToString(field.Culture)
        End If
        LabelValues.Text = "Text: """ + field.Text + """    TextNoLiterals: """ + field.TextNoLiterals + """    Value: " + value
    End Sub

    Private Sub SftMaskColor_ValueChanged(ByVal sender As Object, ByVal e As EventArgs) Handles SftMaskColor.ValueChanged
        ShowColor()
    End Sub

    ' The hexadecimal field holds an RGB color.

See Also SftMask Class | Classes | SftMask/NET 3.0