Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

string DocumentmyDocument.Title { get; set; }

Example

Code Block
languagejs
var doc = $Documents.New('My Document');
doc.Files.AddPDF('<p>Hello</p>', 'report.pdf');

// Checking the title of a document. Currently, title is 'My Document':
var title = doc.Title;

// Changing the title of a document to 'Sample Document':
doc.Title = 'Sample Document';

...

Code Block
languagejs
var doc = $Documents.New('My Document');
doc.Files.AddPDF('<p>Hello</p>', 'report.pdf');

// Checking the title of a document. Currently, title is 'My Document':
var title = doc.Title;

// Changing the title of a document to 'Sample Document':
doc.Title = 'Sample Document';