UISegmentedControl.SetEnabled(Boolean, nint) Method

Definition

Enables or disables a given segment.

[Foundation.Export("setEnabled:forSegmentAtIndex:")]
public virtual void SetEnabled (bool enabled, nint segment);
abstract member SetEnabled : bool * nint -> unit
override this.SetEnabled : bool * nint -> unit

Parameters

enabled
Boolean

Boolean indicating if a segment is should be enabled.

segment
System.System.IntPtr System.nativeint

The index of the segment.

Attributes

Applies to