Title

Property of IDocumentData

Document title

Read-Write Property of type BSTR

JavaScript

var strTitle = DocumentData.Title;
DocumentData.Title = strTitle;

Visual Basic Script

strTitle = DocumentData.Title
DocumentData.Title = strTitle

C++

BSTR strTitle;
HRESULT hr = DocumentData.get_Title(&strTitle);
hr = DocumentData.put_Title(strTitle);