DocumentViewerClientEventsTextCopied Property

Gets or sets the client-side event raised when user copies the selected text in the document. Copying to clipboard with popup menu or keyboard shortcut (e.g. CTRL + C) will both be detected. The value should be a valid JavaScript function name which is accessible on the host page. Function names should be specified without parentheses like "FunctionName" or "Namespace.FunctionName".

Definition

Namespace: GleamTech.DocumentUltimate.AspNet.UI
Assembly: GleamTech.DocumentUltimate (in GleamTech.DocumentUltimate.dll) Version: 6.9.7
C#
public string TextCopied { get; set; }

Property Value

String

Example

Example function:

JavaScript
function documentViewerTextCopied(sender, e) {
    //e.text (text copied to clipboard)

    alert("Copied text: \"" + e.text + "\"");
}
//

See Also