共用方式為


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 開始。 如果指定的區段索引超出控制項中區段的上限範圍,則會傳回上範圍區段的影像。

適用於