Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Current »

Overview

Gets or sets the name content type of document.

string myDocument.ContentType { get; set; }

Remarks

Checking a content type of a document:

Example

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

var cont_type = doc.ContentType;

Example

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

doc.ContentType = 'Belge'; // setting a type before publishing
doc.Publish(["myfolder", "otherfolder"]);
  • No labels