TextBlock.CopySelectionToClipboard TextBlock.CopySelectionToClipboard TextBlock.CopySelectionToClipboard TextBlock.CopySelectionToClipboard Method

Definition

Copies the selected content to the Windows clipboard.

public : void CopySelectionToClipboard()
void CopySelectionToClipboard() const;
public void CopySelectionToClipboard()
Public Sub CopySelectionToClipboard()

Additional features and requirements

Device family
Windows 10, version 1809 (introduced v10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v7)

Remarks

Important

If using a keyboard for text selection within a TextBlock, the user must first activate Caret Browsing (with the app in the foreground, press F7).