Back to Devexpress

CheckBox.SizeMode Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-checkbox-1e3ec20c.md

latest5.0 KB
Original Source

CheckBox.SizeMode Property

Gets or sets the checkbox size mode.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
CheckBoxSizeMode SizeMode { get; set; }
vb
Property SizeMode As CheckBoxSizeMode

Property Value

TypeDescription
CheckBoxSizeMode

One of the CheckBoxSizeMode enumeration values indicating the check box’s size mode.

|

Available values:

NameDescription
Auto

Automatically determined size. Equal to the default font size.

| | Exact |

The exact size specified by the CheckBox.Size property.

|

Remarks

With the SizeMode property set to CheckBoxSizeMode.Exact, the check box size is determined by the CheckBox.Size property.

The check box size is defined by the current font size value if the SizeMode property is set to CheckBoxSizeMode.Auto.

The following code snippets (auto-collected from DevExpress Examples) contain references to the SizeMode property.

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.

winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/FormFields.cs#L21

csharp
checkBox.State = CheckBoxState.Checked;
checkBox.SizeMode = CheckBoxSizeMode.Auto;
checkBox.HelpTextType = FormFieldTextType.Custom;

wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/FormFieldsActions.cs#L19

csharp
checkBox.State = CheckBoxState.Checked;
checkBox.SizeMode = CheckBoxSizeMode.Auto;
checkBox.HelpTextType = FormFieldTextType.Custom;

word-document-api-examples/CS/CodeExamples/FormFieldsActions.cs#L27

csharp
checkBox.State = CheckBoxState.Checked;
checkBox.SizeMode = CheckBoxSizeMode.Auto;
checkBox.HelpTextType = FormFieldTextType.Custom;

winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/FormFields.vb#L19

vb
checkBox.State = DevExpress.XtraRichEdit.API.Native.CheckBoxState.Checked
checkBox.SizeMode = DevExpress.XtraRichEdit.API.Native.CheckBoxSizeMode.Auto
checkBox.HelpTextType = DevExpress.XtraRichEdit.API.Native.FormFieldTextType.Custom

wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/FormFieldsActions.vb#L16

vb
checkBox.State = CheckBoxState.Checked
checkBox.SizeMode = CheckBoxSizeMode.Auto
checkBox.HelpTextType = FormFieldTextType.Custom

word-document-api-examples/VB/CodeExamples/FormFieldsActions.vb#L24

vb
checkBox.State = DevExpress.XtraRichEdit.API.Native.CheckBoxState.Checked
checkBox.SizeMode = DevExpress.XtraRichEdit.API.Native.CheckBoxSizeMode.Auto
checkBox.HelpTextType = DevExpress.XtraRichEdit.API.Native.FormFieldTextType.Custom

See Also

CheckBox Interface

CheckBox Members

DevExpress.XtraRichEdit.API.Native Namespace