Object Model Reference : Classes : D : DimensionLinear : Properties : DimensionLinear.TextX |
Property TextX As Double
Member of DimensionLinear
The TextX property specifies the horizontal position of a text label.
The following VBA example creates a rectangle and a linear dimension that is linked to the rectangles snap points.
Sub Test() |
Dim shp1 As Shape, shp2 As Shape |
Set shp1 = ActiveLayer.CreateRectangle2(0, 0, 100, 50) |
Set shp2 = ActiveLayer.CreateLinearDimension(cdrDimensionHorizontal, shp1.SnapPoints(1), shp1.SnapPoints(3)) |
MsgBox shp2.Dimension.Linear.TextX |
MsgBox shp2.Dimension.Linear.TextY |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.