Text

Property of IClipboardItem

Reads item content as text

Read-Write Property of type BSTR

JavaScript

var pstrText = ClipboardItem.Text;
ClipboardItem.Text = pstrText;

Visual Basic Script

pstrText = ClipboardItem.Text
ClipboardItem.Text = pstrText

C++

BSTR pstrText;
HRESULT hr = ClipboardItem.get_Text(&pstrText);
hr = ClipboardItem.put_Text(pstrText);