officefileapi-devexpress-dot-pdf-dot-pdfgraphicsacroformradiogroupfield-e56f67d0.md
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
public int SelectedIndex { get; set; }
Public Property SelectedIndex As Integer
| Type | Description |
|---|---|
| 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
// 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
// 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
' 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
' 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