|   |   | Object Model Reference : Classes : S : ShapeRange : Methods : ShapeRange.SetOutlineProperties | 
Sub SetOutlineProperties([Width As Double = -1], [Style As OutlineStyle], [Color As Color], [StartArrow As ArrowHead], [EndArrow As ArrowHead], [BehindFill As cdrTriState = cdrUndefined], [ScaleWithShape As cdrTriState = cdrUndefined], [LineCaps As cdrOutlineLineCaps = cdrOutlineUndefinedLineCaps], [LineJoin As cdrOutlineLineJoin = cdrOutlineUndefinedLineJoin], [NibAngle As Double = -9999], [NibStretch As Long], [DashDotLength As Double = -1], [PenWidth As Double])
Member of ShapeRange
The SetOutlineProperties method sets the outline properties of each shape in a shape range.
| 
Parameter
 | 
Description
 | 
| 
Width
 | 
Specifies the width of the outline, measured in points. This parameter is optional, and its default value is -1.
 | 
| 
Style
 | 
Specifies the outline style. This parameter is optional, and its default value is Nothing.
 | 
| 
Color
 | 
Specifies the outline color. This parameter is optional, and its default value is Nothing.
 | 
| 
StartArrow
 | 
Specifies a start arrow for the outline. This parameter is optional, and its default value is Nothing.
 | 
| 
EndArrow
 | 
Specifies an end arrow for the outline. This parameter is optional, and its default value is Nothing.
 | 
| 
BehindFill
 | 
Specifies whether the fill is behind the outline. This parameter is optional, and its default value is cdrUndefined (-2).
 | 
| 
ScaleWithShape
 | 
Specifies whether the outline maintains the size proportions of the shape. This parameter is optional, and its default value is cdrUndefined (-2).
 | 
| 
LineCaps
 | 
Specifies the endpoint style of an open-path outline. This parameter is optional, and its default value is cdrOutlineUndefinedLineCaps (-1).
 | 
| 
LineJoin
 | 
Specifies the appearance of lines that intersect each other in an outline, and returns cdrOutlineLineJoin. This parameter is optional, and its default value is cdrOutlineUndefinedLineJoin (-1).
 | 
| 
NibAngle
 | 
Specifies the orientation of the pen nib, relative to the drawing surface, for a calligraphic outline. This parameter is optional, and its default value is -9999.
 | 
| 
NibStretch
 | 
Specifies the thickness of the pen nib for a calligraphic outline. This parameter is optional, and its default value is 0.
 | 
| 
DashDotLength
 | 
Specifies the dash-dot length of the outline. This parameter is optional, and its default value is -1.
 | 
| 
PenWidth
 | 
Specifies the pen width of the outline. This parameter is optional, and its default value is 0.
 | 
The following VBA example applies blue, dashed outlines with a width of 0.05" to all the ellipses on the active page.
| Sub Test() | 
|  Dim sr As ShapeRange | 
|  Set sr = ActivePage.FindShapes(, cdrEllipseShape) | 
|  sr.SetOutlineProperties 0.05, OutlineStyles(5), CreateRGBColor(0, 0, 255) | 
| End Sub | 
|   |   |   | 
Copyright 2013 Corel Corporation. All rights reserved.