Leadtools.Annotations.Core Namespace : AnnUnitConverter Class |
public static class AnnUnitConverter
Public MustInherit NotInheritable Class AnnUnitConverter
public sealed static class AnnUnitConverter
public final class AnnUnitConverter
function Leadtools.Annotations.Core.AnnUnitConverter()
The AnnUnitConverter class contains helper methods for unit conversions and abbreviations used through out the LEADTOOLS annotations toolkit. You can use the methods of this class to perform the following:
Use GetUnitAbbreviation and GetAngularUnitAbbreviation to get the text abbreviations for the units used in the annotations toolkit. For example, the default abbreviation for AnnUnit.Inch is the string value In
.
Use SetUnitAbbreviation to change the abbreviation of any unit used by the annotation toolkit. For example, to change the abbreviation for AnnUnit.Inch from the default value of In
to "
if desirable.
Convert, ConvertToPixels, ConvertFromPixels and ConvertAngularUnit to convert a value from one unit to another