摘要: 命名空间:using System.Runtime.InteropServices;public class Win32 { public const Int32 AW_HOR_POSITIVE = 0x00000001; public const Int32 AW_HOR_NEGATIVE = 0x00000002; public const Int32 AW_VER_POSITIVE = 0x00000004; public const Int32 AW_VER_NEGATIVE = 0x00000008; public const Int32 AW_CENTER = 0x00000010 阅读全文
posted @ 2011-09-02 14:41 张@天 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 方法一:用正则表达式的方法//引用的命名空间using System.Text.RegularExpressions;public bool isExists(string str) { return Regex.Matches(str, "[a-zA-Z]").Count > 0; }方法二:#region 判断字符串是否有字母 /// <summary> /// 名称:IsAllChar /// 判断文本是否全是字母组合 /// </summary> /// <param name="text">需判断的文本 阅读全文
posted @ 2011-09-02 11:36 张@天 阅读(9265) 评论(0) 推荐(0) 编辑
摘要: Len Len(string|varname) 返回字符串内字符的数目,或是存储一变量所需的字节数。 Trim Trim(string) 将字符串前后的空格去掉 Ltrim Ltrim(string) 将字符串前面的空格去掉 Rtrim Rtrim(string) 将字符串后面的空格去掉 Mid Mid(string,start,length) 从string字符串的start字符开始取得length长度的字符串,如果省略第三个参数表示从start字符开始到字符串结尾的字符串 Left Left(string,length) 从string字符串的左边取得length长度的... 阅读全文
posted @ 2011-09-02 11:33 张@天 阅读(2974) 评论(0) 推荐(1) 编辑