Specifies units of measurement for properties of TRVStyleLength type of some actions.
property UnitsProgram: TRVStyleUnits;
These units are used for properties of the type TRVStyleLength of the following actions:
Not all actions' properties of the type TRVStyleLength are measured in these units. Generally, if the action takes values from the editor, modifies them and applies back to the editor, properties of this action are measured in Editor.Style.Units (where Editor is the target TRichViewEdit control). However, if the action applies some predefined values to the editor, these values are measured using this property.
At design time, values of all action's properties measured in these units are displayed with units ('px' or 'tw') in the Object Inspector (in Delphi 5 or newer). Values of properties measured in Editor.Style.Units are not displayed with units.
Note: assigning a new value to this property does not convert values of actions' properties. To convert properties to new units of measurement, RVA_ConvertToPixels/RVA_ConvertToTwips must be called before changing value of this property.