API Documentation > CorelDRAW > 2025-v26 > Outline > IVGOutline
Outline.SetProperties method
Sets all outline properties
Syntax:
Sub SetProperties(Optional ByVal Width As Double = -1, Optional ByVal Style As OutlineStyle = Nothing, Optional ByVal Color As Color = Nothing, Optional ByVal StartArrow As ArrowHead = Nothing, Optional ByVal EndArrow As ArrowHead = Nothing, Optional ByVal BehindFill As cdrTriState = cdrUndefined, Optional ByVal ScaleWithShape As cdrTriState = cdrUndefined, Optional ByVal LineCaps As cdrOutlineLineCaps = cdrOutlineUndefinedLineCaps, Optional ByVal LineJoin As cdrOutlineLineJoin = cdrOutlineUndefinedLineJoin, Optional ByVal NibAngle As Double = -9999, Optional ByVal NibStretch As Long = 0, Optional ByVal DashDotLength As Double = -1, Optional ByVal PenWidth As Double = 0, Optional ByVal MiterLimit As Double = 0)
Parameters:
Name Type Description
Width
Double
Specifies, in points, the width of the object's outline.
Style
Specifies the outline style of the object's outline.
Color
Specifies the color of the object's outline.
StartArrow
Specifies the start arrow of the object's outline.
EndArrow
Specifies the end arrow of the object's outline.
BehindFill
Determines whether the outline is behind the object's fill.
ScaleWithShape
Determines whether the object's outline maintains the size proportions of the object.
LineCaps
Specifies the endpoint style if the outline is open-path.
LineJoin
Specifies the appearance of the lines that intersect each other in the outline, and returns cdrOutlineLineJoin{cdrOutlineUndefinedLineJoin|.
NibAngle
Double
Specifies the angle of the Brush tool if the outline is calligraphic.
NibStretch
Long
Specifies the thickness of the Brush tool if the oultine is calligraphic.
DashDotLength
Double
Specifies the absolute length of the outline's dash-dot pattern.
PenWidth
Double
Specifies the pen width, if the outline is enhanced.
MiterLimit
Double
Specifies the miter limit.
Remarks:
The SetProperties method allows you to set all outline properties with a single command. Any missing parameter does not change the corresponding property.
Examples:
The following VBA example creates a rectangle with an outline that is 0.3 inches wide. The blue outline is set behind the rectangle's fill and does not to scale to size with the rectangle. The outline's fill has round line caps and beveled line joins. The nib angle is set to 34° with a nib stretch of 100.
Sub test()
Dim s As Shape
Set s = ActiveLayer.CreateRectangle(3, 3, 7, 7)
s.Outline.SetProperties 0.3, , CreateRGBColor(0, 0, 255), , , True, _
  False, cdrOutlineRoundLineCaps, cdrOutlineBevelLineJoin, 34, 100 
End Sub