Back to Devexpress

PdfGraphicsAcroFormChoiceField.SetSelected(Int32, Boolean) Method

officefileapi-devexpress-dot-pdf-dot-pdfgraphicsacroformchoicefield-dot-setselected-x28-system-dot-int32-system-dot-boolean-x29.md

latest1.6 KB
Original Source

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.v25.2.Drawing.dll

NuGet Package : DevExpress.Pdf.Drawing

Declaration

csharp
public void SetSelected(
    int index,
    bool value
)
vb
Public Sub SetSelected(
    index As Integer,
    value As Boolean
)

Parameters

NameTypeDescription
indexInt32

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

PdfGraphicsAcroFormChoiceField Class

PdfGraphicsAcroFormChoiceField Members

DevExpress.Pdf Namespace