Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Char.IsSymbol Method

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

Overload List

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

[Visual Basic] Overloads Public Shared Function IsSymbol(Char) As Boolean
[C#] public static bool IsSymbol(char);
[C++] public: static bool IsSymbol(__wchar_t);
[JScript] public static function IsSymbol(Char) : Boolean;

Indicates whether the character at the specified position in a specified string is categorized as a symbol character.

[Visual Basic] Overloads Public Shared Function IsSymbol(String, Integer) As Boolean
[C#] public static bool IsSymbol(string, int);
[C++] public: static bool IsSymbol(String*, int);
[JScript] public static function IsSymbol(String, int) : Boolean;


[Visual Basic, C#, C++] The following sample demonstrates IsSymbol.

[Visual Basic, C#, C++] Note   This example shows how to use one of the overloaded versions of IsSymbol. For other examples that might be available, see the individual overload topics.
[Visual Basic] 
Imports System

Module IsSymbolSample

    Sub Main()

        Dim str As String
        str = "non-symbolic characters"

        Console.WriteLine(Char.IsSymbol("+"c))      ' Output: "True"
        Console.WriteLine(Char.IsSymbol(str, 8))    ' Output: "False"

    End Sub

End Module

using System;

public class IsSymbolSample {
    public static void Main() {
        string str = "non-symbolic characters"; 

        Console.WriteLine(Char.IsSymbol('+'));        // Output: "True"
        Console.WriteLine(Char.IsSymbol(str, 8));    // Output: "False"

#using <mscorlib.dll>
using namespace System;

int main() {
   String* str = "non-symbolic characters"; 

   Console::WriteLine(Char::IsSymbol('+'));      // Output: "True"
   Console::WriteLine(Char::IsSymbol(str, 8));   // Output: "False"

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

Char Structure | Char Members | System Namespace

© 2017 Microsoft