So, in the above example, we’re looking at the Person Acting Full Name field on the Matter table. The second part is the field name itself. The first part of the name is the Table Type, where the field is pulling the information. Value: This property holds the value, which can be propagated through a data-binding relation.A content control code is in the following format: matter.personActingFullName.DisplayText: This property holds the displayed in the ComboBox/DropdownList text.SelectedItem: This property holds the currently selected item object.LastValue: This property returns the currently selected value as string.Items: This property allows you to specify the predefined items.The only difference is that when using ComboBox you can add a value that is not defined in the list. The ComboBox and DropDownList provide the user with options to choose from. SdtCheckBoxState checkedBoxState = new SdtCheckBoxState() checkedBoxState.Font = new FontFamily("Arial") checkedBoxState.CharacterCode = 0040 SdtCheckBoxState uncheckedBoxState = new SdtCheckBoxState() uncheckedBoxState.Font = new FontFamily("Arial") uncheckedBoxState.CharacterCode = 0024 CheckBoxProperties properties = new CheckBoxProperties() properties.CheckedState = checkedBoxState properties.UncheckedState = uncheckedBoxState properties.Checked = true ComboBox and DropDownList The Checked property specifies whether the checkbox is checked. Both properties are of type SdtCheckBoxState which allows you to set the respective character and its font. The CheckBox content control exposes two properties CheckedState and UnCheckedState. check box, combo box, drop down list, date picker, repeating section.Ĭontent Controls with Specific Properties CheckBox RunProperties: These are the properties which will be applied to the content of the control after interacting with it.This is relevant for the content controls that generate new content after an interaction, e.g.PlaceholderText: This property holds the Placeholder text.ShowPlaceholder: This property enables/disables the Placeholder editing behavior.Placeholder: Gets or set the associated placeholder object.None: The content does not have outline visualization.Tags: The content is wrapped in design view tag. ![]() BoundingBoxes: The content is wrapped in a bounding box that may also contain a specific editor.OutlineAppearance: Represents the different options for visualizing the outline of a content control.The possible values are:.OutlineColor: Gets or sets the color that is used for visualizing the outline.IsTemporary: Gets or sets a value that indicates whether this SDT will be removed after editing its content.Tag: Gets or sets a tag for the associated SDT.Alias: Gets or sets the name for the associated content control (this is necessary because the properties are stored in a separate object).SdtContentLocked: The content control cannot be edited or deleted.ContentLocked: The content control cannot be edited, the entire content control can be deleted.SdtLocked: The content control can be edited but cannot be deleted.Unlocked: The content control can be edited and deleted.Lock: This property controls if the entire content control or its contents can be edited or deleted.DataBinding: Gets or sets an XML mapping (DataBinding) that relates the content of associated SDT to a specific XML node. ![]() ID: Each content control must have unique ID.Type: The type of the current content control.The above content controls share the following properties: The following content controls are not supported by Microsoft Word: This means that you can lock the content of the content control, the entire content control or both. In addition, one can modify the editing behavior of the content controls. They can be nested inside each other as well. The content controls can be defined on Block, Inline, Row or Cell level. When exporting to other formats the content controls will be lost, however, their content (current value) will be preserved. ![]() Structured Document Tags (SDT) enable users to add specific semantics to part of the document: restricting input, modifying editing behavior etc.Ĭurrently, the WordsProcessing library can import and export content controls from and to Office Open XML (DOCX) format. Download free 30-day trial Content Controls (Structured Document Tags)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |