InchesToPoints 方法 (Excel)Application.InchesToPoints method (Excel)

将度量单位从英寸转换为磅。Converts a measurement from inches to points.

语法Syntax

表达式InchesToPoints(英寸)expression.InchesToPoints (Inches)

expression:表示 Application 对象的变量。expression A variable that represents an Application object.

参数Parameters

名称Name 必需/可选Required/Optional 数据类型Data type 说明Description
InchesInches 必需Required DoubleDouble 指定要转换为磅值的英寸值。Specifies the inch value to be converted to points.

返回值Return value

DoubleDouble

示例Example

本示例将工作表 Sheet1 中的左边距设为 2.5 英寸。This example sets the left margin of Sheet1 to 2.5 inches.

Worksheets("Sheet1").PageSetup.LeftMargin = _ 
 Application.InchesToPoints(2.5)

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.