Back to Devexpress

PdfGraphicsAcroFormCheckBoxField.IsChecked Property

officefileapi-devexpress-dot-pdf-dot-pdfgraphicsacroformcheckboxfield-2c43d332.md

latest2.5 KB
Original Source

PdfGraphicsAcroFormCheckBoxField.IsChecked Property

Gets or sets whether a check box is checked.

Namespace : DevExpress.Pdf

Assembly : DevExpress.Pdf.v25.2.Drawing.dll

NuGet Package : DevExpress.Pdf.Drawing

Declaration

csharp
public bool IsChecked { get; set; }
vb
Public Property IsChecked As Boolean

Property Value

TypeDescription
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

csharp
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

vb
checkBox.Appearance.BorderAppearance = New PdfGraphicsAcroFormBorderAppearance() With {.Color = Color.Red}
checkBox.IsChecked = True
checkBox.ButtonStyle = PdfAcroFormButtonStyle.Star

See Also

PdfGraphicsAcroFormCheckBoxField Class

PdfGraphicsAcroFormCheckBoxField Members

DevExpress.Pdf Namespace