Skip to content

Commit 7f82c75

Browse files
committed
addressed feedback
1 parent 1f10ee0 commit 7f82c75

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

knowledge-base/change-checkbox-state-radwordsprocessing.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,13 @@ private static void ChangeCheckboxState(SdtRangeStart sdt)
7474
}
7575
```
7676

77-
To apply this method, iterate through the content controls in your document, and call `ChangeCheckboxState` for each checkbox you wish to modify.
77+
To apply this method, iterate through the content controls in your document, and call `ChangeCheckboxState` for each checkbox you wish to modify. Alternatively, get the first SdtRangeStart and update its state:
78+
79+
```csharp
80+
SdtRangeStart stdStart = document.EnumerateChildrenOfType<SdtRangeStart>().First();
81+
ChangeCheckboxState(stdStart);
82+
```
83+
7884

7985
## Notes
8086

@@ -83,4 +89,5 @@ To apply this method, iterate through the content controls in your document, and
8389

8490
## See Also
8591

86-
- [RadWordsProcessing Documentation](https://docs.telerik.com/devtools/document-processing/libraries/radwordsprocessing/overview)
92+
- [Working with Content Controls]({%slug wordsprocessing-model-working-with-content-controls%})
93+
- [Content Controls (Structured Document Tags)]({%slug wordsprocessing-model-content-controls%})

0 commit comments

Comments
 (0)