Table of contents
TOC
折叠目录
展开目录

LineFormat.Weight 属性 (发布服务器)LineFormat.Weight Property (Publisher)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

返回或设置一个variant 类型的值,表示指定线条或单元格边框的粗细。Returns or sets a Variant indicating the thickness of the specified line or cell border.

语法Syntax

表达式重量expression. Weight

_expression_A 表示LineFormat对象的变量。_expression_A variable that represents a LineFormat object.

注解Remarks

返回的值以磅为单位。设置属性时,数值按磅计算,字符串则可以使用 Publisher 支持的任何单位(例如,“2.5 英寸”)。Return values are in points. When setting the property, numeric values are evaluated in points, and strings can be in any units supported by Publisher (for example, "2.5 in").

示例Example

以下示例将一条 2 磅粗的绿色虚线添加到当前出版物。This example adds a green dashed line, two points thick, to the active publication.

With ActiveDocument.Pages(1).Shapes _ 
 .AddLine(BeginX:=10, BeginY:=10, _ 
 EndX:=250, EndY:=250).Line 
 .DashStyle = msoLineDashDotDot 
 .ForeColor.RGB = RGB(0, 255, 255) 
 .Weight = 2 
End With 
© 2018 Microsoft