Previous Document Next Document

Object Model Reference : Classes : L : Layer : Methods : Layer.CreateAngularDimension


Layer.CreateAngularDimension

Function CreateAngularDimension(Center As SnapPoint, Point1 As SnapPoint, Point2 As SnapPoint, TextX As Double, TextY As Double, [Precision As Long = 2], [ShowUnits As Boolean = True], [Units As cdrDimensionAngularUnits = cdrDimensionUnitDegrees], [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

Description

Member of Layer

The CreateAngularDimension method creates an angular dimension at a specified location on a layer.

Parameter
Description
Center
Specifies the snap point that represents the vertex (center coordinate) of the angular dimension
Point1
Specifies the snap point that represents an endpoint of the “arms” (or arc) of the angular dimension
Point2
Specifies the snap point that represents an endpoint of the “arms” (or arc) of the angular dimension
TextX
Specifies the horizontal position of the text label
TextY
Specifies the vertical position of the text label
Precision
Specifies the number of significant digits for the dimension label to display after the decimal point, if using a decimal format for the dimension value. This parameter is optional, and its default value is 2.
ShowUnits
Specifies whether to display the unit of measurement in the label. This parameter is optional, and its default value is True.
Units
Specifies the unit of measurement for the dimension value. This parameter is optional, and its default value is cdrDimensionUnitDegrees (0).
BoxedText
Specifies whether the 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. This parameter is optional, and its default value is False.
LeadingZero
Specifies whether the text value displays a leading zero for numbers that are less than 1.0 and for which a decimal format is used. This parameter is optional, and its default value is True.
Prefix
Specifies the prefix for the dimension label (that is, the text displayed before the dimension value). This parameter is optional.
Suffix
Specifies the suffix for the dimension label (that is, the text displayed after the dimension value). This parameter is optional.
OutlineWidth
Specifies the outline width. This parameter is optional, and its default value is -1.
Arrows
Specifies the desired arrowheads. This parameter is optional, and its default value is Nothing.
OutlineColor
Specifies the outline color. This parameter is optional, and its default value is Nothing.
TextFont
Specifies the text font. This parameter is optional.
TextSize
Specifies the text size. This parameter is optional, and its default value is 0.
TextColor
Specifies the text color. This parameter is optional, and its default value is Nothing.

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.