Object Model Reference : Classes : D : Dimension : Properties : Dimension.BoxedText |
Property BoxedText As Boolean
Member of Dimension
The BoxedText property specifies whether a dimension value has a visible border with the same properties as the dimension line that is, whether the dimension label is enclosed by a rectangle.
The following VBA example creates a rectangle and a linear dimension that is linked to the rectangles snap points. A border is created around the dimension value.
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.BoxedText = True |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.