You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libraries/radwordsprocessing/model/content-controls/content-controls.md
+40-2Lines changed: 40 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,18 +78,55 @@ The __CheckBox__ content control exposes two properties __CheckedState__ and __U
78
78
79
79
SdtCheckBoxState checkedBoxState = new SdtCheckBoxState();
80
80
checkedBoxState.Font = new FontFamily("Arial");
81
-
checkedBoxState.CharacterCode = 0040;
81
+
checkedBoxState.CharacterCode = 0x0040;
82
82
83
83
SdtCheckBoxState uncheckedBoxState = new SdtCheckBoxState();
84
84
uncheckedBoxState.Font = new FontFamily("Arial");
85
-
uncheckedBoxState.CharacterCode = 0024;
85
+
uncheckedBoxState.CharacterCode = 0x0024;
86
86
87
87
CheckBoxProperties properties = new CheckBoxProperties();
88
88
properties.CheckedState = checkedBoxState;
89
89
properties.UncheckedState = uncheckedBoxState;
90
90
properties.Checked = true;
91
91
{{endregion}}
92
92
93
+
The toggle states can be visualized with any characters specified in the properties. The following example demonstrates a complete code snippet how to insert toggled/untoggled checkboxes:
The __ComboBox__ and __DropDownList__ provide the user with options to choose from. The only difference is that when using ComboBox you can add a value that is not defined in the list.
@@ -169,5 +206,6 @@ The __Text__ content control allows you to enter plain text. The text content co
169
206
# See Also
170
207
171
208
*[Working with Content Controls]({%slug wordsprocessing-model-working-with-content-controls%})
209
+
*[Generating Dynamic DOCX Documents with Tables and CheckBoxes using RadWordsProcessing]({%slug dynamic-docx-document-generation-radwordsprocessing%})
0 commit comments