HeaderPane
Main
Hide
Share Link
Print

PrePaste Event, SftMask Class

Occurs before a text is pasted; the handler can change or cancel the text.

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

Syntax

public event EventHandler<PrePasteEventArgs> PrePaste;
Public Event PrePaste As EventHandler(Of PrePasteEventArgs)

Comments

Occurs before a text is pasted; the handler can change or cancel the text.

Examples

C# View entire sample code

            DumpValues("sftMask1.DropDownOpened", e);
        }

        private void sftMask1_DropDownClosed(object sender, DropDownEventArgs e) {
            DumpValues("sftMask1.DropDownClosed", e);
        }

        private void sftMask1_PrePaste(object sender, PrePasteEventArgs e) {
            DumpValues("sftMask1.PrePaste", e);
        }

        private void sftMask1_InputModeChanged(object sender, EventArgs e) {
            DumpValues("sftMask1.InputModeChanged (" + (sftMask1.Overtype ? "overtype" : "insert") + ")", e);
        }

        private void sftMask1_Enter(object sender, EventArgs e) {

VB.NET View entire sample code

    Private Sub SftMask1_DropDownOpened(ByVal sender As Object, ByVal e As DropDownEventArgs) Handles SftMask1.DropDownOpened
        DumpValues("SftMask1.DropDownOpened", e)
    End Sub

    Private Sub SftMask1_DropDownClosed(ByVal sender As Object, ByVal e As DropDownEventArgs) Handles SftMask1.DropDownClosed
        DumpValues("SftMask1.DropDownClosed", e)
    End Sub

    Private Sub SftMask1_PrePaste(ByVal sender As Object, ByVal e As PrePasteEventArgs) Handles SftMask1.PrePaste
        DumpValues("SftMask1.PrePaste", e)
    End Sub

    Private Sub SftMask1_InputModeChanged(ByVal sender As Object, ByVal e As EventArgs) Handles SftMask1.InputModeChanged
        DumpValues("SftMask1.InputModeChanged (" + If(SftMask1.Overtype, "overtype", "insert") + ")", e)
    End Sub

See Also SftMask Class | Classes | SftMask/NET 3.0