Char::IsSymbol Method (Char)

 

Indicates whether the specified Unicode character is categorized as a symbol character.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

public:
static bool IsSymbol(
	wchar_t c
)

Parameters

c
Type: System::Char

The Unicode character to evaluate.

Return Value

Type: System::Boolean

true if c is a symbol character; otherwise, false.

Valid symbols are members of the following categories in UnicodeCategory: MathSymbol, CurrencySymbol, ModifierSymbol, and OtherSymbol.

Symbols in the Unicode standard are a loosely defined set of characters that include the following:

  • Currency symbols.

  • Letterlike symbols, which include a set of mathematical alphanumeric symbols as well as symbols such as ℅, №, and ™.

  • Number forms, such as subscripts and superscripts.

  • Mathematical operators and arrows.

  • Geometric symbols.

  • Technical symbols.

  • Braille patterns.

  • Dingbats.

The following code example demonstrates IsSymbol.

using namespace System;
int main()
{
   String^ str =  "non-symbolic characters";
   Console::WriteLine( Char::IsSymbol( '+' ) ); // Output: "True"
   Console::WriteLine( Char::IsSymbol( str, 8 ) ); // Output: "False"
}

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: