StructuredDocumentTag
İçindekiler
[
Saklamak
]StructuredDocumentTag constructor
Yeni bir örneğini başlatırYapılandırılmış belge etiketi class.
public StructuredDocumentTag(DocumentBase doc, SdtType type, MarkupLevel level)
Parametre | Tip | Tanım |
---|---|---|
doc | DocumentBase | Sahibi belgesi. |
type | SdtType | SDT düğümünün türü. |
level | MarkupLevel | Belge içindeki SDT düğümünün düzeyi. |
Notlar
Aşağıdaki SDT türleri oluşturulabilir:
- Checkbox
- DropDownList
- ComboBox
- Date
- BuildingBlockGallery
- Group
- Picture
- RichText
- PlainText
Örnekler
Onay kutusu biçiminde yapılandırılmış belge etiketinin nasıl oluşturulacağını gösterin.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
StructuredDocumentTag sdtCheckBox =
new StructuredDocumentTag(doc, SdtType.Checkbox, MarkupLevel.Inline) {Checked = true};
// Onay kutusu içerik kontrolünün işaretli/işaretsiz durumunu temsil etmek için kullanılan sembolleri ayarlayabiliriz.
sdtCheckBox.SetCheckedSymbol(0x00A9, "Times New Roman");
sdtCheckBox.SetUncheckedSymbol(0x00AE, "Times New Roman");
builder.InsertNode(sdtCheckBox);
doc.Save(ArtifactsDir + "StructuredDocumentTag.CheckBox.docx");
Ayrıca bakınız
- class DocumentBase
- enum SdtType
- enum MarkupLevel
- class StructuredDocumentTag
- ad alanı Aspose.Words.Markup
- toplantı Aspose.Words