Previous Document Next Document
Layer.CreateLinearDimension

Function CreateLinearDimension(Type As cdrLinearDimensionType, Point1 As SnapPoint, Point2 As SnapPoint, [TextCentered As Boolean = True], [TextX As Double], [TextY As Double], [Style As cdrDimensionStyle = cdrDimensionStyleDecimal], [Precision As Long = 2], [ShowUnits As Boolean = True], [Units As cdrDimensionLinearUnits = cdrDimensionUnitMM], [Placement As cdrDimensionPlacement = cdrDimensionWithinLine], [HorizontalText As Boolean = False], [BoxedText As Boolean = False], [LeadingZero As Boolean = True], [Prefix As String], [Suffix As String], [OutlineWidth As Double = -1], [Arrows As ArrowHead], [OutlineColor As Color], [TextFont As String], [TextSize As Double], [TextColor As Color]) As Shape

Member of Layer

The CreateLinearDimension method creates a linear dimension.

Parameters
Description
Type
Point1
Point2
TextCentered
This parameter is optional, and its default value is True.
TextX
This parameter is optional, and its default value is 0.
TextY
This parameter is optional, and its default value is 0.
Style
This parameter is optional, and its default value is cdrDimensionStyleDecimal (0).
Precision
This parameter is optional, and its default value is 2.
ShowUnits
This parameter is optional, and its default value is True.
Units
This parameter is optional, and its default value is cdrDimensionUnitMM (15).
Placement
This parameter is optional, and its default value is cdrDimensionWithinLine (1).
HorizontalText
This parameter is optional, and its default value is False.
BoxedText
This parameter is optional, and its default value is False.
LeadingZero
This parameter is optional, and its default value is True.
Prefix
This parameter is optional,
Suffix
This parameter is optional.
OutlineWidth
This parameter is optional, and its default value is -1.
Arrows
This parameter is optional, and its default value is Nothing.
OutlineColor
This parameter is optional, and its default value is Nothing.
TextFont
This parameter is optional.
TextSize
This parameter is optional, and its default value is 0.
TextColor
This parameter is optional, and its default value is Nothing.

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.