Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.11 KB

Publisher.LineFormat.Weight.md

File metadata and controls

46 lines (30 loc) · 1.11 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
LineFormat.Weight property (Publisher)
vbapb10.chm3408147
vbapb10.chm3408147
Publisher.LineFormat.Weight
854928ca-5f38-3cc9-50d5-2473a0885a0c
06/08/2019
medium

LineFormat.Weight property (Publisher)

Returns or sets a Variant indicating the thickness of the specified line or cell border.

Syntax

expression.Weight

expression A variable that represents a LineFormat object.

Remarks

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

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 

[!includeSupport and feedback]