API Documentation > CorelDRAW > 2025-v26 > Dimension > IVGDimension
Dimension.Outline property
Returns an outline object for the dimension
Syntax:
Property Get Outline() As Outline
Remarks:
The Outline property returns a read-only reference to the Outline object for a dimension.
Examples:
The following VBA example creates a rectangle and a linear dimension that is linked to the rectangle's snap points. The color of the dimension line is changed to red.
Sub Test()
Dim shp1 As Shape, shp2 As Shape
Set shp1 = ActiveLayer.CreateRectangle2(0, 0, 5, 2.5)
Set shp2 = ActiveLayer.CreateLinearDimension(cdrDimensionHorizontal, _
  shp1.SnapPoints(1), shp1.SnapPoints(3))
shp2.Dimension.Outline.Color = CreateRGBColor(255,0,0) 
End Sub