The following example shows how you can update the Content Controls elements with the values from the mapped CustomXmlPart using the IContentControl.Update method. With GemBox.Document you can update the values separately in mapped XML ( CustomXmlPart.Data) and the content of Content Control ( BlockContentControl.Blocks or InlineContentControl.Inlines). New SpecialCharacter(document, SpecialCharacterType.LineBreak),Įnd Module Content Controls with XML MappingĬontent Controls can be mapped to XML nodes from DocumentModel.CustomXmlParts. New Run(document, "☒") )Ĭ = Trueĭim comboBoxControl As New InlineContentControl(document, ContentControlType.ComboBox,Ĭ(New ContentControlListItem("", "NONE"))Ĭ(New ContentControlListItem("GemBox.Spreadsheet", "GBS"))Ĭ(New ContentControlListItem("GemBox.Document", "GBD"))Ĭ(New ContentControlListItem("GemBox.Pdf", "GBA"))Ĭ(New ContentControlListItem("GemBox.Presentation", "GBP"))Ĭ(New ContentControlListItem("GemBox.Email", "GBE"))Ĭ(New ContentControlListItem("GemBox.Imaging", "GBI")) Var checkBoxControl = new InlineContentControl(document, ContentControlType.CheckBox, New Paragraph(document, "Plain Text Content Control with tag and title.")) Var plainTextControl = new BlockContentControl(document, ContentControlType.PlainText, Create named Plain Text Content Control.
VBA complains with a compilation error: 'Object Required. I came to the following code to identify the checkboxes. As a first step in this task I am trying to recognize when a table cell contains a checkbox, and then read the status of the checkbox: checked or unchecked. Important Some information relates to prerelease product that may be substantially modified before it’s released. New Paragraph(document, "It cannot be deleted or edited.")) The Word files are already available and their format cannot be changed. New Paragraph(document, "This text is inside Rich Text Content Control."), Var richTextControl = new BlockContentControl(document, ContentControlType.RichText, However, there are 2 rows with check box controls in various cells that behave erroneously. I can move from one content control to the next via the 'TAB' key. Create locked Rich Text Content Control. It is laid out in a table and the form is protected.
If using the Professional version, put your serial key below.ĬomponentInfo.SetLicense("FREE-LIMITED-KEY")