Document.ContentType

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"]);

Copyright © 2010 - 2023 Emakin. All rights reserved.