[]
        
(Showing Draft Content)

C1.Win.Input.CharHelper.ToAnsi

ToAnsi Method

ToAnsi(char)

Converts the value of a Unicode character to it's ANSI equivalent.

Declaration
public static char ToAnsi(char c)
Parameters
Type Name Description
char c

A Unicode character.

Returns
Type Description
char

An Ansi character equivalent of c in the current culture.

Remarks

Encodes the specified Unicode character to an ANSI character using the current culture.

ToAnsi(char, CultureInfo)

Converts the value of a Unicode character to it's ANSI equivalent using the specified culture information.

Declaration
public static char ToAnsi(char c, CultureInfo culture)
Parameters
Type Name Description
char c

A Unicode character.

CultureInfo culture

A CultureInfo object. If a null reference is passed, the current culture is assumed.

Returns
Type Description
char

An Ansi character equivalent of c using the specified culture.