UISegmentedControl.ImageAt(nint) 方法

定义

检索特定段中使用的图像

[Foundation.Export("imageForSegmentAtIndex:")]
public virtual UIKit.UIImage ImageAt (nint segment);
abstract member ImageAt : nint -> UIKit.UIImage
override this.ImageAt : nint -> UIKit.UIImage

参数

segment
System.System.IntPtr System.nativeint

要为其返回图像的段。

返回

指定段的图像。

属性

注解

段索引从 0 开始。 如果指定的段索引超出了控件中段的上限范围,则将返回位于上一范围的段的图像。

适用于