WPS 基础接口 > 文字 API 参考 > Font > 属性 > Font.Kerning 属性
返回或设置 WPS 根据字号自动调整字距时的最小字号。Single 类型,可读写。

语法

表达式.Kerning

表达式   返回 Font 对象的表达式。

示例

本示例将活动文档进行自动字距调整的最小字号设为 12 磅或更大。

示例代码
ActiveDocument.Content.Font.Kerning = 12

本示例显示 WPS 根据字号自动调整选定文本的字距时的最小字号。

示例代码
if(Selection.Type == wdSelectionNormal) {
    MsgBox(Selection.Font.Kerning)
}
else {
    MsgBox("You need to select some text.")
}


请参阅