Click or drag to resize

DataBrowser.Cut Method (Typed)

X#
Cut the current selection in the data browser to the clipboard.

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.21
Syntax
 VIRTUAL METHOD Cut() AS VOID
Request Example View Source
Remarks
The current selection can be a few characters in a cell, an entire cell's contents, several cells, several records, or nothing at all. If several cells are selected, they are cut to the clipboard in the standard tab-separated format accepted by spreadsheet and word processor products.
Tip Tip
Cut() is not allowed if more than one record is selected.
Note that this method changes the fields to which this data browser's cells are linked and, therefore, the changes are subject to validation. The operation leaves the cells blank, but required fields or other validation rules can mark the record as invalid. The operation performed by this method is the same action as is normally performed in standard GUI applications by the Edit Cut menu command (note that under Windows, this menu command is typically linked to the Ctrl+X and/or Shift+Insert accelerators). This standard behavior is automatically provided by X# and, therefore, there is no need to provide a special method for this (in fact, the accelerators work even if there is no menu command).
See Also