API Documentation > CorelDRAW > 2025-v26 > Layer > IVGLayer
Layer.CreateAngularDimension method
Creates an angular dimension
Syntax:
Function CreateAngularDimension(ByVal Center As SnapPoint, ByVal Point1 As SnapPoint, ByVal Point2 As SnapPoint, ByVal TextX As Double, ByVal TextY As Double, Optional ByVal Precision As Long = 2, Optional ByVal ShowUnits As Boolean = True, Optional ByVal Units As cdrDimensionAngularUnits = cdrDimensionUnitDegrees, Optional ByVal BoxedText As Boolean = False, Optional ByVal LeadingZero As Boolean = True, Optional ByVal Prefix As String, Optional ByVal Suffix As String, Optional ByVal OutlineWidth As Double = -1, Optional ByVal Arrows As ArrowHead = Nothing, Optional ByVal OutlineColor As Color = Nothing, Optional ByVal TextFont As String, Optional ByVal TextSize As Double = 0, Optional ByVal TextColor As Color = Nothing) As Shape
Parameters:
Name Type Description
Center
Point1
Point2
TextX
Double
TextY
Double
Precision
Long
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.
ShowUnits
Boolean
Specifies whether to display the unit of measurement in the label.
Units
Specifies the unit of measurement for the dimension value.
BoxedText
Boolean
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.
LeadingZero
Boolean
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.
Prefix
String
Suffix
String
OutlineWidth
Double
Specifies the outline width.
Arrows
Specifies the desired arrowheads.
OutlineColor
Specifies the outline color.
TextFont
String
TextSize
Double
Specifies the text size.
TextColor
Specifies the text color.
Remarks:
The CreateAngularDimension method creates an angular dimension at a specified location on a layer.