Skip to main content
All docs
V25.2
  • TdxCustomLayoutGroup.SmartPaste(string) Method

    Inserts the specified string or current clipboard content into nested editors using the AI-powered Smart Paste functionality.

    Declaration

    procedure SmartPaste(const AInputText: string = '');

    Parameters

    Name Type Description
    AInputText string

    Optional. The source string.

    If you omit the AInputText parameter, the procedure uses clipboard content as the source string.

    Remarks

    A Smart Paste command analyzes clipboard content and intelligently assigns correct values (in required formats) to appropriate layout items/embedded editors.

    VCL Layout Control: A Smart Paste Operation Example

    Call the SmartPaste procedure to execute a Smart Paste command for nested layout items (associated with editors). The active AI provider service relies on layout item descriptions (in a natural language) to determine appropriate paste targets and required data formats.

    To execute a Smart Paste command at the global level, call the parent Layout control’s SmartPaste procedure.

    See Also