Back to Devexpress

PdfGraphicsAcroFormRadioGroupField.SelectedIndex Property

officefileapi-devexpress-dot-pdf-dot-pdfgraphicsacroformradiogroupfield-e56f67d0.md

latest3.4 KB
Original Source

PdfGraphicsAcroFormRadioGroupField.SelectedIndex Property

Specifies index of the selected item in radio group field.

Namespace : DevExpress.Pdf

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

NuGet Package : DevExpress.Pdf.Drawing

Declaration

csharp
public int SelectedIndex { get; set; }
vb
Public Property SelectedIndex As Integer

Property Value

TypeDescription
Int32

The zero-based index of the radio group’s selected item.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the SelectedIndex 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-radio-button-group-field/CS/AddRadioButtonField/Program.cs#L37

csharp
// Specify radio group selected index, style and appearance.
radioGroup.SelectedIndex = 1;
radioGroup.ButtonStyle = PdfAcroFormButtonStyle.Circle;

pdf-document-api-create-interactive-form/CS/AddFormFieldsToNewDocument/Program.cs#L48

csharp
// Specify radio group selected index, and appearance.
radioGroup.SelectedIndex = 0;
radioGroup.Appearance.BorderAppearance = new PdfGraphicsAcroFormBorderAppearance() { Color = Color.Red, Width = 3 };

pdf-document-api-create-radio-button-group-field/VB/AddRadioButtonField/Program.vb#L32

vb
' Specify radio group selected index, style and appearance.
radioGroup.SelectedIndex = 1
radioGroup.ButtonStyle = PdfAcroFormButtonStyle.Circle

pdf-document-api-create-interactive-form/VB/AddFormFieldsToNewDocument/Program.vb#L40

vb
' Specify radio group selected index, and appearance.
radioGroup.SelectedIndex = 0
radioGroup.Appearance.BorderAppearance = New PdfGraphicsAcroFormBorderAppearance() With {.Color = Color.Red, .Width = 3}

See Also

PdfGraphicsAcroFormRadioGroupField Class

PdfGraphicsAcroFormRadioGroupField Members

DevExpress.Pdf Namespace