編集

次の方法で共有


UISegmentedControl.SelectedSegment Property

Definition

The index of the selected segment.

public virtual nint SelectedSegment { [Foundation.Export("selectedSegmentIndex")] get; [Foundation.Export("setSelectedSegmentIndex:")] set; }
member this.SelectedSegment : nint with get, set

Property Value

System.System.IntPtr System.nativeint
Attributes

Remarks

Set to -1 to turn off the currently selected segment. If Momentary == true the SelectedSegment property is ignored.

Applies to