getUnits Method

Summary

Returns a dictionary containing all the units and their current abbreviation.

Syntax

JavaScript Syntax
getUnits = function() 
TypeScript Syntax
static getUnits(): { [key: number]: string }; 

Return Value

A dictionary containing all the units (as the key) and their current abbreviation (as the value).

Remarks

Use getUnitAbbreviation to get the current abbreviation to use with a unit in the UI and setUnitAbbreviation to modify the abbreviation to use with a unit in the UI. Use getUnits to get a dictionary containing the current abbreviation of all the units.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Core Assembly