Copy;
The Copy method copies the selected cells to clipboard.
On copying of the numbers with several places in the fractional part and on the further pasting of them into the data source that differs from platform, only visible part of the number is copied.
It is used only in the desktop application.
Executing the example requires a form with the Button1 and Button2 buttons located on it, the UiTabSheet component named UiTabSheet1 and the TabSheetBox component.
Class TESTForm: Form
Button1: Button;
Button2: Button;
UiTabSheet1: UiTabSheet;
TabSheetBox1: TabSheetBox;
Tab: ITabSheet;
Sub TESTFormOnCreate(Sender: Object; Args: IEventArgs);
Begin
Tab := UiTabSheet1.TabSheet;
End Sub TESTFormOnCreate;
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
Tab.Copy;
End Sub Button1OnClick;
Sub Button2OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
Tab.Paste;
End Sub Button2OnClick;
End Class TESTForm;
Clicking the Button1 button copies data in the selected cells to clipboard, clicking the Button2 button pastes clipboard data to the selected cells.
See also: