IRdsDictionaryBox.CanCopy

Fore Syntax

CanCopy: Boolean;

Fore.NET Syntax

CanCopy(): boolean;

Description

The CanCopy method returns whether the element can be copied to the clipboard.

Comments

Available values:

Fore Example

Executing the example requires a form containing:

Sub CopyPaste;
Begin
    If RdsDictionaryBox1.CanCopy Then
        RdsDictionaryBox1.Copy;
    End If;
    RdsDictionaryBox1.FocusedElement := -2;
    If RdsDictionaryBox1.CanPaste Then
        RdsDictionaryBox1.Paste;
    End If;
End Sub CopyPaste;

Example execution result: an attempt to copy element to the clipboard and paste it.

Fore.NET Example

Executing the example requires a .NET form that contains:

Public Sub CopyPaste();
Begin
    If rdsDictionaryBoxNet1.CtrlBox.CanCopy() Then
        rdsDictionaryBoxNet1.CtrlBox.Copy();
    End If;
    rdsDictionaryBoxNet1.CtrlBox.FocusedElement := -2;
    If rdsDictionaryBoxNet1.CtrlBox.CanPaste() Then
        rdsDictionaryBoxNet1.CtrlBox.Paste();
    End If;
End Sub CopyPaste;

Example execution result: an attempt to copy element to the clipboard and paste it.

See also:

IRdsDictionaryBox