HeaderPane
Main
Hide
Share Link
Print

InputRejectedEventArgs Class

Provides data for the SftMask.InputRejected event.

Namespace: Softelvdm.SftMaskNET
Assembly: Softelvdm.SftMaskNET

Inheritance

Syntax

public class InputRejectedEventArgs : System.EventArgs;
Public Class InputRejectedEventArgs
    Inherits System.EventArgs

Constructors

This class cannot be instantiated.

Properties

PublicCharacterReturns the rejected character, or '\0' when a deletion was rejected.
PublicPositionReturns the position at which the character was rejected.
PublicReasonReturns why the character was rejected.

Fields

PublicStaticInherited from System.EventArgsEmptyProvides a value to use with events that do not have event data.

Methods

PublicInherited from System.ObjectEqualsDetermines whether the specified object is equal to the current object.
ProtectedInherited from System.ObjectFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
PublicInherited from System.ObjectGetHashCodeServes as the default hash function.
PublicInherited from System.ObjectGetTypeGets the Type of the current instance.
ProtectedInherited from System.ObjectMemberwiseCloneCreates a shallow copy of the current Object.
PublicStaticInherited from System.ObjectReferenceEqualsDetermines whether the specified Object instances are the same instance.
PublicInherited from System.ObjectToStringReturns a string that represents the current object.

Examples

C# View entire sample code

        private void sftMask1_TextChanged(object sender, EventArgs e) {
            DumpValues("sftMask1.TextChanged (" + sftMask1.Text + ")", e);
        }

        private void sftMask1_ValueChanged(object sender, EventArgs e) {
            DumpValues("sftMask1.ValueChanged (" + (sftMask1.Value.HasValue ? sftMask1.Value.Value.ToString() : "none") + ")", e);
        }

        private void sftMask1_InputRejected(object sender, InputRejectedEventArgs e) {
            DumpValues("sftMask1.InputRejected", e);
        }

        private void sftMask1_ValidationError(object sender, ValidationErrorEventArgs e) {
            DumpValues("sftMask1.ValidationError", e);
        }

VB.NET View entire sample code

    Private Sub SftMask1_ValueChanged(ByVal sender As Object, ByVal e As EventArgs) Handles SftMask1.ValueChanged
        Dim value As String = "none"
        If SftMask1.Value.HasValue Then
            value = SftMask1.Value.Value.ToString()
        End If
        DumpValues("SftMask1.ValueChanged (" + value + ")", e)
    End Sub

    Private Sub SftMask1_InputRejected(ByVal sender As Object, ByVal e As InputRejectedEventArgs) Handles SftMask1.InputRejected
        DumpValues("SftMask1.InputRejected", e)
    End Sub

    Private Sub SftMask1_ValidationError(ByVal sender As Object, ByVal e As ValidationErrorEventArgs) Handles SftMask1.ValidationError
        DumpValues("SftMask1.ValidationError", e)
    End Sub

See Also Classes | SftMask/NET 3.0