UISegmentedControl.ApportionsSegmentWidthsByContent 属性

定义

允许段控件根据每个内容宽度调整每个段的宽度。

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

属性值

属性

注解

如果设置为 true 且线段宽度为 0,段控件将尝试调整段的大小以适应其内容。

适用于