Share via


UISegmentedControl.IsEnabled(IntPtr) Method

Definition

Returns if a particular segment is enabled.

[Foundation.Export("isEnabledForSegmentAtIndex:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool IsEnabled(IntPtr segment);
[<Foundation.Export("isEnabledForSegmentAtIndex:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member IsEnabled : nativeint -> bool
override this.IsEnabled : nativeint -> bool

Parameters

segment
IntPtr

nativeint

The index of the segment.

Returns

Returns true if the segment is enabled.

Attributes

Remarks

Segments are enabled by default.

Applies to