SGBTextBox.ClipboardOperationEventHandler Delegate

Represents the method that handles clipbaord operations in an SGBTextBox control.

Namespace: SGBControls.Editors
Assembly: SGBControls

Syntax
public delegate void ClipboardOperationEventHandler(object sender, EditorEvents.ClipboardOperationEventHandler e);

Parameters
Parameter Name Type Description
sender System.Object Represents the source of the event
e SGBControls.Editors.ClipboardOperationArgs Represents the data passed from the clipboard operation


Remarks
This event is fired in response to a clipboard operation carried out by the user either using the Right Click Menu or via the methods provided by the TextBox class for clipbaord manilpulation.

The ClipboardOperationArgs is the type passed in the e parameter and informs the developer of the operation that was carried out.

Examples
C#
// Show a message box when a clipboard operation is carried out in the SGBTextBox
void TextBoxControl_ClipboardOperation(object sender, EditorEvents.ClipboardOperationHandler e)
{
         MessageBox.show(e.Operation.ToString());
}

VB.net
'Show a message box when a clipboard operation is carried out in the SGBTextBox
Private Sub TextBoxControl_ClipboardOperation(ByVal sender As Object, ByVal e As EditorEvents.ClipboardOperationHandler) 
    MessageBox.show(e.Operation.ToString()) 
End Sub 

Issues
None

Last edited Mar 30, 2010 at 2:18 PM by scottgblood, version 2

Comments

No comments yet.