![]() ![]() The StructuredDocumentTag.Clear method clears contents of this structured document tag and displays a placeholder if it is defined. You can clear the contents of a content control with displaying a placeholder. The following code example shows how to set XML mapping: Clear Contents of a Content Control You can get the mapping of this structured document tag range to XML data in a custom XML part of the current document using the StructuredDocumentTagRangeStart.XmlMapping property. However, the SetMapping method can be used to map a structured document tag range to XML data. The following code example shows how to bind content control to custom XML parts: XMLMapping of Structured Document Tag Range You can bind content controls with XML data ( custom XML part) in Word documents. ![]() ![]() The following code example shows how to modify content controls of type plain text box, drop-down list and picture: Binding Content Control to Custom XML Parts The following code example shows how to set the current state of the checkbox: This section explains how to update the values of SDT or content control programmatically. The following code example shows how to create content control of the type combo box: How to Update Content Controls The following code example shows how to create content control of type rich text box: The following code example shows how to create content control of type checkbox: In this version of Aspose.Words, the following types of SDT or content control can be created: Inserting Content Controls into a Document Nested inside another StructuredDocumentTag. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |