ITabSheet.Copy

Fore Syntax

Copy;

Fore.NET Syntax

Copy();

Description

The Copy method copies the selected cells to clipboard.

Comments

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.

Fore Example

Executing the example requires a form, a button on this form named Button1, 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.

Fore.NET Example

The requirements and result of the Fore.NET Example execution match with those in the Fore Example. Use Fore.NET analogs instead of Fore components.

Imports Prognoz.Platform.Interop.Tab;

Public Partial Class TESTForm: Prognoz.Platform.Forms.Net.ForeNetForm
    Public Constructor TESTForm();
    Begin
        InitializeComponent();
    End Constructor;
    
    Tab: ITabSheet;
    
    Private Sub TESTForm_Load(sender: System.Object; e: System.EventArgs);
    Begin
        Tab := uiTabSheetNet1.TabSheetUi.TabSheet;
    End Sub;
    
    Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
    Begin
        Tab.Copy();
    End Sub;

    Private Sub button2_Click(sender: System.Object; e: System.EventArgs);
    Begin
        Tab.Paste();
    End Sub;
End Class;

See also:

ITabSheet