Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Latest commit

 

History

History
58 lines (31 loc) · 888 Bytes

lineformat-weight-property-powerpoint.md

File metadata and controls

58 lines (31 loc) · 888 Bytes
title keywords f1_keywords ms.prod api_name ms.assetid ms.date
LineFormat.Weight Property (PowerPoint)
vbapp10.chm553015
vbapp10.chm553015
powerpoint
PowerPoint.LineFormat.Weight
5141d66f-4706-060d-fb4c-f244f9ac6437
06/08/2017

LineFormat.Weight Property (PowerPoint)

Returns or sets the thickness of the specified line, in points. Read/write.

Syntax

expression. Weight

expression A variable that represents a LineFormat object.

Return Value

Single

Example

This example adds a green dashed line two points thick to myDocument.

Set myDocument = ActivePresentation.Slides(1)

With myDocument.Shapes.AddLine(10, 10, 250, 250).Line

    .DashStyle = msoLineDashDotDot

    .ForeColor.RGB = RGB(0, 255, 255)

    .Weight = 2

End With

See also

Concepts

LineFormat Object