User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_csunits.autoselect_wordbool_double

Table of Contents

ITGIS_CSUnits.AutoSelect method

DK for ActiveX | TatukGIS_XDK11.ITGIS_CSUnits.AutoSelect | Methods | Properties

Returned the most appropriate sub unit for selected value.

Available also on: Delphi | .NET | Java | Python.

Syntax

// C#
public ITGIS_CSUnits AutoSelect(
  WordBool _areal,
  ref double _value
);
' VisualBasic
Public Function AutoSelect(
  ByVal _areal As WordBool,
  ByRef _value As Double
) As ITGIS_CSUnits
// Oxygene
public
  function AutoSelect(
    _areal : WordBool;
    var _value : Double
  ) : ITGIS_CSUnits;

Parameters

Name Type Description
_areal WordBool if true select areal units, if false select linear.
_value double
Double
units in base metric

Result

Type Description
ITGIS_CSUnits Units converted to string.

Remarks

if units type is other the TGIS_CSUnitsType.Auto then returned value is always converted based on object properties
Units will be autoselected to choose the most adequate is unit is a type of TGIS_CSUnitsType.Auto.

2025/01/31 01:04

Page Tools