Ana içeriğe geç

ContentType

Belgenin içerik türünü alır veya ayarlar.

Tür

string

Bildirim

1
 string myDocument.ContentType

Açıklamalar

Belgenin içerik türünü denetleme:

Örnek

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

var cont_type = doc.ContentType;

Örnek

1
2
3
4
5
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');