Method function IGDIPlus.IGPStringFormat.SetDigitSubstitution(LANGID;TGPStringDigitSubstitute) : TGPStringFormat

From Mitov Wiki Doc
Jump to: navigation, search

This is a Beta Read Only version of this page. Please review and send recommendations to mitov@mitov.com. We will enable the editing as soon as we are happy with the overall Wiki site.

Class: IGPStringFormat

Contents

Syntax

Delphi:

function SetDigitSubstitution( language : LANGID, substitute : TGPStringDigitSubstitute ) : TGPStringFormat;

C++ Builder:

TGPStringFormat __fastcall SetDigitSubstitution( LANGID language, TGPStringDigitSubstitute substitute );

Visual C++ (MFC):

SetDigitSubstitution(  language,  substitute );

Summary

Sets the digit substitution method and the language that corresponds to the digit substitutes.

Description

Call this method to set the digit substitution method and the

language that corresponds to the digit substitutes.
Remarks
The digit substitution method, specified by an element of the
TGPStringDigitSubstitute enumeration, replaces, in a string,
Western European digits with digits that correspond to a
user's locale or language.



When specifying LANG_NEUTRAL as the language ID, it is common
practice to pass just LANG_NEUTRAL as in the following
example:


stat := FontFamily.GetFamilyName(name, LANG_NEUTRAL);

If you are specifying a language other than LANG_NEUTRAL, use
MAKELANGID to create the language and sublanguage combination
as in the following example:


language := MAKELANGID(LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL);

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox