共用方式為


UISegmentedControl.ApportionsSegmentWidthsByContent 屬性

定義

允許區段控制項根據每個內容寬度調整每個區段的寬度。

public virtual bool ApportionsSegmentWidthsByContent { [Foundation.Export("apportionsSegmentWidthsByContent")] get; [Foundation.Export("setApportionsSegmentWidthsByContent:")] set; }
member this.ApportionsSegmentWidthsByContent : bool with get, set

屬性值

屬性

備註

如果設定為 true 且線段寬度為 0,區段控制項會嘗試調整區段的大小以符合其內容。

適用於