API Documentation > CorelDRAW > 2025-v26
Dimension class
Represents the settings of a dimension
Syntax:
Class Dimension
Properties:
Name Description
Angular Returns the properties of angular dimension
BoxedText Specifies whether the label should be enclosed by a rectangle
DistanceFromObject Returns the custom distance of dimension lines from an object
DynamicText Specifies whether the text label should be automatically updated when associated shape(s) are moved or transformed
ExtensionLinesVisible Specifies whether the dimension extension lines are visible
GapOnFreeExtensionVisible Specifies whether there is a gap between the snap point and the beginning of extension line if the extension line is not connected to an object
HorizontalText Specifies whether the text should be horizontal
LeadingZero Specifies whether a leading zero should be shown for fractional numbers
Linear Returns the properties of linear dimension
Outline Returns an outline object for the dimension
Overhang Returns the custom witness line overhang distance
Placement Specifies the text label placement
Precision Specifies the number precision of the dimension label
Prefix Specifies the prefix for the dimension label
ShowUnits Specifies whether the units of measurements are added to the dimension label
Suffix Specifies the suffix for the dimension label
TextCentered Specifies whether the text label should be centered within the dimension
TextLabelGap Returns the custom text label gap
TextShape Returns a text shape representing the dimension label
Type Returns the current dimension type
UseDistanceFromObject Specifies whether the custom distance from an object is used
UseOverhang Specifies whether the custom witness line overhang distance is used
UseTextLabelGap Specifies whether the custom text label gap is used
Methods:
Name Description
SetDistanceFromObject Sets the custom distance of dimension lines from an object
SetOverhang Sets the custom witness line overhang distance
SetTextLabelGap Sets the custom text label gap