![]() The following example shows how you can update the Content Controls elements with the values from the mapped CustomXmlPart using the IContentControl.Update method. Content controls are bounded and potentially labeled regions in a document that serve as containers for specific types of content. Track changes can work for the content of the content control. 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). To add a Content control, click Rich Text Content Control box. Based on the screenshot, I assume you are trying to change the content control properties but not the content of the content control. 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")) What used to be called 'Online Forms Controls', which are the first type of control listed in as Legacy Forms controls. Content Controls (the default type, in the Windows version) b. Var checkBoxControl = new InlineContentControl(document, ContentControlType.CheckBox, There are at least three types of control you can put on the surface of a Word document in the WIndows versions 20 of Word: a. New Paragraph(document, "Plain Text Content Control with tag and title.")) Creating a Form in Word - Adding Content Controls in a Microsoft Word Form. Ideally if the user chose the wrong option and choose again, the first TextCC will delete and add the new one. For example, if the user select Option 1, TextCC1 display. First, the easiest way is to do the development on a Windows computer. ![]() Var plainTextControl = new BlockContentControl(document, ContentControlType.PlainText, Hi, I would like to conditionally hide/show the text content control based on the value of another content control dropdown list. Word for the Mac will use Content Controls but has no built-in way to insert or modify them. Create named Plain Text Content Control. New Paragraph(document, "It cannot be deleted or edited.")) Created on OctoForm Content Control Properties not displayed when Restrict Editing is enforced. 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")
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |