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

段索引。

属性

注解

默认值 0.0 将导致段自动调整大小。

适用于