edit only the first paragraph of the document but other people aren't. The following example shows how you can update the Content Controls elements with the values from the mapped CustomXmlPart using the IContentControl.Update method. Control content changes Open the ControlChanges document, and then complete.
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. Per your description, it seems that you want to using Drop down list to update the document content automatically when switching. Typically this will be at the beginning of your document. Click the location where you want to insert the table of contents. 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")) Make sure any page you want to include in the table of contents has a heading. Then, select the Developer tab in the Ribbon menu. Var checkBoxControl = new InlineContentControl(document, ContentControlType.CheckBox, Click on a location in the document where you want to add a control. New Paragraph(document, "Plain Text Content Control with tag and title.")) Users can freely edit the content controls and surrounding text. Var plainTextControl = new BlockContentControl(document, ContentControlType.PlainText,
Group a checklist built using the Check Box Content Control. In the Controls section, click Group, and select Group from the drop-down list. Go to the Developer tab in Microsoft Word. Create named Plain Text Content Control. First, select the checklist that you want to secure from changes. New Paragraph(document, "It cannot be deleted or edited.")) New Paragraph(document, "This text is inside Rich Text Content Control."), Var richTextControl = new BlockContentControl(document, ContentControlType.RichText, Create locked Rich Text Content Control. If using the Professional version, put your serial key below.ĬomponentInfo.SetLicense("FREE-LIMITED-KEY")