Share via


UISegmentedControl.ImageAt(IntPtr) Method

Definition

Retrieves the image used in a particular segment

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

Parameters

segment
IntPtr

nativeint

The segment to return the image for.

Returns

The image for the specified segment.

Attributes

Remarks

The segment indices start at 0. If a segment index is specified beyond the upper range of segments in the control, the image of the segment at the upper range will be returned.

Applies to