TdxMapControlNavigationPanel.XCoordinateDisplayMask Property
Specifies the display format mask for the X coordinate.
Declaration
property XCoordinateDisplayMask: string read; write;
Property Value
Type | Description |
---|---|
string | The display format mask for the X coordinate. |
Remarks
Use the XCoordinateDisplayMask
property to specify the mask by combining any custom text with the macros listed in the table below. When the display value for the mask is about to be determined, these macros will be automatically replaced with the corresponding values.
Macro | Description |
---|---|
{CP} | A cardinal point. |
{D:N} | A degree value. N used in this and other macros is an integer that ranges from 1 to 9 and specifies the number of decimal places to display. Any integer outside this range causes the mask to ignore the macro completely – the corresponding value is not shown. N is optional and can be omitted together with the colon used as a prefix. |
{M:N} | A minute value. Optional N specifies the number of decimal places to display. Refer to the {D:N} macro description to learn about this parameter. |
{S:N} | A second value. Optional N specifies the number of decimal places to display. Refer to the {D:N} macro description to learn about this parameter. |
The macros apply to both the X and Y coordinate masks specified by XCoordinateDisplayMask
and YCoordinateDisplayMask properties, respectively. At design time, these properties provide a drop-down list populated with predefined masks. You can switch between the masks by selecting items from the list, customize the selected mask, or create a custom one. Using an empty string as a property value applies the default mask (corresponds to the first item in the drop-down list).