Text is about to be pasted into the control.
| C# | void object_PrePaste(object sender, EventArgumentType e); |
| VB.NET | Private Sub object_PrePaste(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.PrePaste |
| C++ | void OnPrePasteobject(_bstr_t* Text); |
| C | HRESULT OnPrePasteobject(BSTR* Text); |
| VB | Private Sub object_PrePaste(Text As String) |
object
Text
The text about to be pasted into the control at the insertion point (or replacing the current selection if present).
The PrePaste event occurs when text is about to be pasted into the control.
This event is intended to make modifications to the Text about to be pasted. It cannot be used to modify control properties or invoke control methods.
To prevent the operation to continue, Text can be set to any empty string.
See Also SftMask Events | Object Hierarchy