Back to Devexpress

ContentControlCollection.InsertCheckboxControl(DocumentPosition) Method

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-contentcontrolcollection-dot-insertcheckboxcontrol-x28-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-documentposition-x29.md

latest4.0 KB
Original Source

ContentControlCollection.InsertCheckboxControl(DocumentPosition) Method

Inserts a checkbox content control at the specified document position.

Namespace : DevExpress.XtraRichEdit.API.Native

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
ContentControlCheckbox InsertCheckboxControl(
    DocumentPosition position
)
vb
Function InsertCheckboxControl(
    position As DocumentPosition
) As ContentControlCheckbox

Parameters

NameTypeDescription
positionDocumentPosition

A document position where the checkbox should be located.

|

Returns

TypeDescription
ContentControlCheckbox

The checkbox content control.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the InsertCheckboxControl(DocumentPosition) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/ContentControlActions.cs#L44

csharp
// Insert a checkbox:
var checkboxControl = contentControls.InsertCheckboxControl(document.Paragraphs[3].Range.Start);
checkboxControl.Checked = false;

winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/ContentControls.cs#L45

csharp
// Insert a checkbox:
var checkboxControl = contentControls.InsertCheckboxControl(document.Paragraphs[3].Range.Start);
checkboxControl.Checked = false;

word-document-api-examples/CS/CodeExamples/ContentControlsActions.cs#L47

csharp
// Insert a checkbox:
var checkboxControl = contentControls.InsertCheckboxControl(document.Paragraphs[3].Range.Start);
checkboxControl.Checked = false;

winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/ContentControls.vb#L37

vb
' Insert a checkbox:
Dim checkboxControl = contentControls.InsertCheckboxControl(document.Paragraphs(CInt((3))).Range.Start)
checkboxControl.Checked = False

See Also

ContentControlCollection Interface

ContentControlCollection Members

DevExpress.XtraRichEdit.API.Native Namespace