UISegmentedControl.SegmentWidth(IntPtr) Method
Definition
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.
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.