Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PdfGraphicsAcroFormChoiceField.SetSelected(Int32, Boolean) Method

Selects or unselects an item in a combo box of a list box field by its index.

Namespace: DevExpress.Pdf

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

NuGet Package: DevExpress.Pdf.Drawing

#Declaration

public void SetSelected(
    int index,
    bool value
)

#Parameters

Name Type Description
index Int32

The zero-based index of the item that should be selected or unselected.

value Boolean

true, to select the item; false to unselect the item.

#Remarks

Call the ClearSelection() method to clear selection in the form field.

See Also