HeaderPane
Main
Hide
Share Link
Print

PrePasteEventArgs Class

Provides data for the SftMask.PrePaste event.

An event handler can change the text, or set Cancel to paste nothing; an empty text pastes nothing.

Namespace: Softelvdm.SftMaskNET
Assembly: Softelvdm.SftMaskNET

Inheritance

Syntax

public class PrePasteEventArgs : System.ComponentModel.CancelEventArgs;
Public Class PrePasteEventArgs
    Inherits System.ComponentModel.CancelEventArgs

Constructors

This class cannot be instantiated.

Properties

PublicInherited from System.ComponentModel.CancelEventArgsCancelGets or sets a value indicating whether the event should be canceled.
PublicTextDefines the text to paste.

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_DropDownOpened(object sender, DropDownEventArgs e) {
            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);
        }

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 Classes | SftMask/NET 3.0