共用方式為


UISegmentedControl.SetWidth(nfloat, nint) 方法

定義

設定特定線段的寬度。

[Foundation.Export("setWidth:forSegmentAtIndex:")]
public virtual void SetWidth (nfloat width, nint segment);
abstract member SetWidth : nfloat * nint -> unit
override this.SetWidth : nfloat * nint -> unit

參數

width
nfloat

要設定的區段寬度。

segment
System.System.IntPtr System.nativeint

區段 index。。

屬性

備註

預設值 0.0 會導致區段自動調整大小。

適用於