다음을 통해 공유


Variant.ToChar Method

Definition

Interprets the Variant object's value as a Unicode character if the variant type is VT_UI2.

public:
 char ToChar();
public:
 char16 ToChar();
char ToChar();
public char ToChar ();
member this.ToChar : unit -> char
Public Function ToChar () As Char

Returns

If the variant type is VT_UI2, returns the value interpreted as a character; otherwise, returns 0.

Remarks

This method is used by the HandlePreExec method on the ViewFilter class to actually get the character value.

Applies to