Back to Devexpress

PdfAcroFormRadioGroupField.SelectedIndex Property

officefileapi-devexpress-dot-pdf-dot-pdfacroformradiogroupfield-36ecc41a.md

latest2.6 KB
Original Source

PdfAcroFormRadioGroupField.SelectedIndex Property

Specifies index of the selected item in a radio group field.

Namespace : DevExpress.Pdf

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

NuGet Package : DevExpress.Pdf.Core

Declaration

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

Property Value

TypeDescription
Int32

An integer value, representing the zero-based index of the radio group’s selected item.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference 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-add-interactive-form-fields/CS/AddFormFieldsToExistingDocument/Program.cs#L29

csharp
// Specify radio group selected index, and appearance.
radioGroup.SelectedIndex = 0;
radioGroup.Appearance.BorderAppearance = new PdfAcroFormBorderAppearance() { Color = new PdfRGBColor(0.8, 0.5, 0.3), Width = 3 };

pdf-document-api-add-interactive-form-fields/VB/AddFormFieldsToExistingDocument/Program.vb#L24

vb
' Specify radio group selected index, and appearance.
radioGroup.SelectedIndex = 0
radioGroup.Appearance.BorderAppearance = New PdfAcroFormBorderAppearance() With {.Color = New PdfRGBColor(0.8, 0.5, 0.3), .Width = 3}

See Also

PdfAcroFormRadioGroupField Class

PdfAcroFormRadioGroupField Members

DevExpress.Pdf Namespace