C# Class ICSharpCode.TextEditor.TextAreaClipboardHandler

Show file Open project: Clancey/MonoMac.Windows.Form Class Usage Examples

Public Properties

Property Type Description
GetClipboardContainsText ClipboardContainsTextDelegate

Public Methods

Method Description
Copy ( object sender, EventArgs e ) : void
Cut ( object sender, EventArgs e ) : void
Delete ( object sender, EventArgs e ) : void
Paste ( object sender, EventArgs e ) : void
SelectAll ( object sender, EventArgs e ) : void
TextAreaClipboardHandler ( TextArea textArea ) : System

Protected Methods

Method Description
OnCopyText ( CopyTextEventArgs e ) : void

Private Methods

Method Description
CopyTextToClipboard ( string stringToCopy ) : bool
CopyTextToClipboard ( string stringToCopy, bool asLine ) : bool
DocumentSelectionChanged ( object sender, EventArgs e ) : void
SafeSetClipboard ( object dataObject ) : void

Method Details

Copy() public method

public Copy ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Cut() public method

public Cut ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Delete() public method

public Delete ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

OnCopyText() protected method

protected OnCopyText ( CopyTextEventArgs e ) : void
e CopyTextEventArgs
return void

Paste() public method

public Paste ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

SelectAll() public method

public SelectAll ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

TextAreaClipboardHandler() public method

public TextAreaClipboardHandler ( TextArea textArea ) : System
textArea TextArea
return System

Property Details

GetClipboardContainsText public static property

Is called when CachedClipboardContainsText should be updated. If this property is null (the default value), the text editor uses System.Windows.Forms.Clipboard.ContainsText.
This property is useful if you want to prevent the default Clipboard.ContainsText behaviour that waits for the clipboard to be available - the clipboard might never become available if it is owned by a process that is paused by the debugger.
public static ClipboardContainsTextDelegate GetClipboardContainsText
return ClipboardContainsTextDelegate