←Select platform

SetUnitAbbreviation Method

Summary

Modifies the default string abbreviation to be used with a specific unit.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public static string SetUnitAbbreviation( 
   AnnUnit unit, 
   string newValue 
) 
Public Shared Function SetUnitAbbreviation( _ 
   ByVal unit As Leadtools.Annotations.Core.AnnUnit, _ 
   ByVal newValue As String _ 
) As String 
public static string SetUnitAbbreviation(  
   Leadtools.Annotations.Core.AnnUnit unit, 
   string newValue 
) 
+(NSString*) setUnitAbbreviation:(LTAnnUnit) aUnit 
                           value:(NSString*) newValue; 
             
public static String setUnitAbbreviation(AnnUnit unit, String newValue) 
             
 function Leadtools.Annotations.Core.AnnUnitConverter.SetUnitAbbreviation(  
   unit , 
   newValue  
) 
public:  
   static String^ SetUnitAbbreviation( 
      AnnUnit^ unit, 
      String^ newValue 
   ) 

Parameters

unit
The unit value to change its abbreviation.

newValue
A string value that specifies the abbreviation to be used with unit.

Return Value

A string that specifies the previous default value.

Remarks

You can use this method to globally change the abbreviation used with any unit during the life of your program.

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