Char.IsSymbol Method (Char)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Indicates whether the specified Unicode character is categorized as a symbol character.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- c
- Type: System.Char
A Unicode character.
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 such symbols as ℅, №, and ™.
Number forms, such as subscripts and superscripts.
Mathematical operators and arrows.
Geometric symbols.
Technical symbols.
Braille patterns.
Dingbats.
The following example demonstrates IsSymbol.
Module Example Public Sub Demo(ByVal outputBlock As System.Windows.Controls.TextBlock) Dim str As String str = "non-symbolic characters" outputBlock.Text &= Char.IsSymbol("+"c) & vbCrLf ' Output: "True" outputBlock.Text += String.Format(Char.IsSymbol(str, 8)) & vbCrLf ' Output: "False" End Sub End Module