User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_csunits.autoselect_boolean_double

Table of Contents

TGIS_CSUnits.AutoSelect method

DK11 for .NET | TatukGIS.NDK.TGIS_CSUnits.AutoSelect | Constructors | Methods | Properties

Returned the most appropriate sub unit for selected value.

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

Syntax

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

Parameters

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

Result

Type Description
TGIS_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.

2022/11/16 01:29

Page Tools