private static bool CheckRTL(String text) { if (text == null || text.Length == 0) return false; char[] cc = text.ToCharArray(); for (int k = 0; k < cc.Length; ++k) { int c = (int)cc[k]; if (c >= 0x590 && c < 0x0780) return true; } return false; }