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.Inline-level – Among inline content inside, as a child of a Paragraph.Cell-level – Among cells in a table row, as a child of a Row node.Row-level – Among rows in a table, as a child of a Table node.Block-level – Among paragraphs and tables, as a child of a Body, HeaderFooter, Comment, Footnote or a Shape node.StructuredDocumentTag can occur in a document in the following places: In Microsoft Word, you can create a form by starting with a template and adding content controls, including checkboxes, text boxes, date pickers, and drop-down lists. In Aspose.Words, a Structured Document Tag or content control from any document loaded into Aspose.Words is imported as a StructuredDocumentTag node. Structured document tags (SDT or content control) allow embedding customer-defined semantics as well as its behaviour and appearance into a document. Working with Repeating Section Content Control.How to Set Style to Format Text Typed into the Content Control.Change Content Control Background and Border Colors.XMLMapping of Structured Document Tag Range.Binding Content Control to Custom XML Parts.Inserting Content Controls into a Document.Aspose.Total Product Family Aspose.Words Product Solution Aspose.PDF Product Solution Aspose.Cells Product Solution Aspose.Email Product Solution Aspose.Slides Product Solution Aspose.Imaging Product Solution Aspose.BarCode Product Solution Aspose.Diagram Product Solution Aspose.Tasks Product Solution Aspose.OCR Product Solution Aspose.Note Product Solution Aspose.CAD Product Solution Aspose.3D Product Solution Aspose.HTML Product Solution Aspose.GIS Product Solution Aspose.ZIP Product Solution Aspose.Page Product Solution Aspose.PSD Product Solution Aspose.OMR Product Solution Aspose.PUB Product Solution Aspose.SVG Product Solution Aspose.Finance Product Solution Aspose.Drawing Product Solution Aspose.Font Product Solution Aspose.TeX Product Solution
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |