Previous Document Next Document

Object Model Reference : Classes : D : Dimension : Properties : Dimension.Linear


Dimension.Linear

Property Linear As DimensionLinear

Description

Member of Dimension

The Linear property returns a read-only reference to a dimension’s linear-specific properties.

VBA example

The following VBA example creates a rectangle and a linear dimension that is linked to the rectangle’s snap points.

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.ShowUnits = True
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.