NSLayoutManager.HyphenationFactor 属性

定义

断字阈值。

public virtual nfloat HyphenationFactor { [Foundation.Export("hyphenationFactor")] get; [Foundation.Export("setHyphenationFactor:")] set; }
member this.HyphenationFactor : nfloat with get, set

属性值

介于 0 到 1 范围内的值。 0 表示断字已关闭,1.0 会导致始终尝试断字。

属性

注解

应用程序开发人员应倾向于将此值设置为 0.0,因为断字速度较慢且会消耗内存。

适用于