Overrides the JavaScript toJSON() method in order to provide more useful output when an API object is passed to JSON.stringify(). You must call context.sync() before reading the properties. Queues up a command to load the specified properties of the object. For further information, see *OrNullObject methods and properties. If this collection is empty, then this method will return an object with its isNullObject property set to true. Gets the first content control in this collection. Throws an ItemNotFound error if this collection is empty. Gets the content controls that have the specified types. Gets the content controls that have the specified title. Gets the content controls that have the specified tag. If there isn't a content control with the identifier in this collection, then this method will return an object with its isNullObject property set to true. Gets a content control by its identifier. Throws an ItemNotFound error if there isn't a content control with the identifier in this collection. Gets the content controls that have the specified tracking state. Methods get B圜hange Tracking States(change Tracking States) Gets the loaded child items in this collection. This connects the add-in's process to the Office host application's process. The request context associated with the object.
![content control microsoft word content control microsoft word](https://gregmaxey.com/images/word_tips/cc_enhancements_1.png)
The following example shows how you can update the Content Controls elements with the values from the mapped CustomXmlPart using the IContentControl.Update method.Properties context 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.
![content control microsoft word content control microsoft word](https://expediencesoftware.com/wp-content/uploads/2022/09/SOW-template-480x417.png)
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.
![content control microsoft word content control microsoft word](https://i.stack.imgur.com/h69LJ.png)
If using the Professional version, put your serial key below.ĬomponentInfo.SetLicense("FREE-LIMITED-KEY")