officefileapi-devexpress-dot-pdf-dot-pdfgraphicsacroformcheckboxfield-2c43d332.md
Gets or sets whether a check box is checked.
Namespace : DevExpress.Pdf
Assembly : DevExpress.Pdf.v25.2.Drawing.dll
NuGet Package : DevExpress.Pdf.Drawing
public bool IsChecked { get; set; }
Public Property IsChecked As Boolean
| Type | Description |
|---|---|
| Boolean |
true if the check box is checked; otherwise, false.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IsChecked 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.
pdf-document-api-create-check-box-field/CS/AddCheckBoxField/Program.cs#L32
checkBox.Appearance.BorderAppearance = new PdfGraphicsAcroFormBorderAppearance() { Color = Color.Red };
checkBox.IsChecked = true;
checkBox.ButtonStyle = PdfAcroFormButtonStyle.Star;
pdf-document-api-create-check-box-field/VB/AddCheckBoxField/Program.vb#L30
checkBox.Appearance.BorderAppearance = New PdfGraphicsAcroFormBorderAppearance() With {.Color = Color.Red}
checkBox.IsChecked = True
checkBox.ButtonStyle = PdfAcroFormButtonStyle.Star
See Also
PdfGraphicsAcroFormCheckBoxField Class