?? noname1.cs
字號(hào):
/*
微軟剛剛推出
Microsoft Visual Studio International Pack 1.0 Beta1
支持 漢字 拼音 筆畫 轉(zhuǎn)換
http://www.microsoft.com/downloads/details.aspx?FamilyID=e432aeaa-7b6f-4b0d-968b-b6aafda05e34&DisplayLang=en
我已經(jīng)提取了 dll assembly
*/
//csc.exe noname1.cs /r:ChnCharInfo.dll
namespace Microshaoft
{
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Microsoft.International.Converters.PinYinConverter;
public class Class1
{
static void Main(string[] args)
{
//漢字的筆畫數(shù)
int i = ChineseChar.GetStrokeNumber('饕');
Console.WriteLine(i);
//漢字的所有拼音拼寫
ChineseChar x = new ChineseChar('說(shuō)');
ReadOnlyCollection<string> roc = x.Pinyins;
foreach(string s in roc)
{
Console.WriteLine(s);
}
//拼音拼寫的所有漢字
Char[] chars = ChineseChar.GetChars("YUE4");
foreach(Char c in chars)
{
Console.WriteLine(c);
}
//筆畫數(shù)的所有漢字
chars = ChineseChar.GetChars(20);
foreach(Char c in chars)
{
Console.WriteLine(c);
}
Console.WriteLine(Environment.Version.ToString());
}
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -