UISegmentedControl.SelectedSegment Property
In this article
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
System.System.IntPtr
System.nativeint
- Attributes
Set to -1 to turn off the currently selected segment. If Momentary == true the SelectedSegment property is ignored.