InchesToPoints 方法

       

将度量单位从英寸转换为磅值(1 英寸 = 72 磅)。以 Single 类型返回转换结果。

expression.InchesToPoints(Inches)

expression   可选。该表达式返回一个 Application 对象。

Inches   Single 类型,必需。将转换为磅值的英寸数。

示例

本示例将选定段落的段前间距设置为 0.25 英寸。

Selection.ParagraphFormat.SpaceBefore = InchesToPoints(0.25)

本示例先将每个打开的文档的左右页边距设置为 0.65 英寸,再逐一打印各文档。

Dim docLoop As Document

For Each docLoop in Documents
    With docLoop
        .PageSetup.LeftMargin = InchesToPoints(0.65)
        .PageSetup.RightMargin = InchesToPoints(0.65)
        .PrintOut
    End With
Next docLoop