Aspose.Editor supports cut, copy and paste operations with formatted text. The control automatically handles standard keyboard shortcuts for these operations, as well as providing an API to perform them programmatically.
Clipboard operations in Aspose.Editor.
Code example to Cut selected text into clipboard programmatically.
[C#]
/// <summary>
/// This is a handler for the Edit | Cut menu.
/// </summary>
private void EditCut(object sender, System.EventArgs e)
{
Debug.Assert(editorControl.Document != null);
Debug.Assert(!editorControl.Selection.IsEmpty);
// Aspose.Editor has the Selection and Range objects that work
// and feel in many ways similar to Microsoft Word Automation.
editorControl.Selection.Range.Cut();
}
[VB.NET]
''' <summary>
''' This is a handler for the Edit | Cut menu.
''' </summary>
Private Sub EditCut(ByVal sender As Object, ByVal e As System.EventArgs)
Debug.Assert(Not editorControl.Document Is Nothing)
Debug.Assert((Not editorControl.Selection.IsEmpty))
' Aspose.Editor has the Selection and Range objects that work
' and feel in many ways similar to Microsoft Word Automation.
editorControl.Selection.Range.Cut()
End Sub