Determines whether the specified character is printable.
[Visual Basic] Public Shared Function IsPrintable( _ ByVal c As Char _ ) As Boolean [C#] public static bool IsPrintable( char c ); [C++] public: static bool IsPrintable( __wchar_t c ); [JScript] public static function IsPrintable( c : Char ) : Boolean;
true if the character is printable on the user's machine, otherwise false.
Exception Type | Condition |
---|---|
ArgumentException | if it cannot get the character type information. |
The IsPrintable method determines whether a character can be printed on the user's printer and prints it using that machine's code pages. If the character is printable, a true or false indication is returned. (See CharacterInfo.)