word的繁簡轉換雖然比較強大,但是所花的時間實在太久了

用VB的套件會快很多,不介意沒有慣用語轉換的話,可以試試

http://sanchen.blogspot.com/2007/12/microsoftvisualbasicstringsstrconv.html -> 這是較深入的探討

using Microsoft.VisualBasic; 
需refrence : Microsoft.VisualBasic.Runtime(在 microsoft.visualbasic.dll 中)
 

 

VbStrConv.None

不执行任何转换

VbStrConv.LinguisticCasing

使用语言规则进行大小写,而不使用文件系统(默认)。仅当与 VbStrConv.UpperCaseVbStrConv.LowerCase 一起使用时才有效。

VbStrConv.UpperCase

将字符串转换为大写字符。

VbStrConv.LowerCase

将字符串转换为小写字符。

VbStrConv.ProperCase

将字符串中每个单词的第一个字母转换为大写。

VbStrConv.Wide

将字符串中的窄(半角)字符转换为宽(全角)字符。

VbStrConv.Narrow

将字符串中的宽(全角)字符转换为窄(半角)字符。

VbStrConv.Katakana 

将字符串中的平假名字符转换为片假名字符。

VbStrConv.Hiragana

将字符串中的片假名字符转换为平假名字符。

VbStrConv.SimplifiedChinese 

将繁体中文字符转换为简体中文字符。

VbStrConv.TraditionalChinese 

将简体中文字符转换为繁体中文字符。

 

label1.Text = Strings.StrConv(label1.Text,VbStrConv.SimplifiedChinese,0);   //此为将label1.Text从繁体转换为简体

 

arrow
arrow
    全站熱搜

    winnercow 發表在 痞客邦 留言(0) 人氣()