Share via


UISegmentedControl.SegmentWidth(IntPtr) Method

Definition

Returns the with of a particular segment.

[Foundation.Export("widthForSegmentAtIndex:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Runtime.InteropServices.NFloat SegmentWidth(IntPtr segment);
[<Foundation.Export("widthForSegmentAtIndex:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member SegmentWidth : nativeint -> System.Runtime.InteropServices.NFloat
override this.SegmentWidth : nativeint -> System.Runtime.InteropServices.NFloat

Parameters

segment
IntPtr

nativeint

The index of the segment.

Returns

The segment width.

Attributes

Remarks

If the value is 0.0, the segmented control will automatically sizes the segment.

Applies to