Table of Contents

Property Index

Namespace
Terminal.Gui.Views
Assembly
Terminal.Gui.dll

Index

Gets or sets the zero-based index of the currently selected item.

public int? Index { get; set; }

Property Value

int?

The index of the selected item, or null if no item is selected.

Remarks

Use this property to get or set the selection by index directly. To get or set the selection by object, use SelectedItem or Value.