seay - FontAwesomeNet 1.1.0
Font-Awesome-4.7.0 for Windows Forms and WPF
PM> Install-Package FontAwesomeNet -Version 1.1.0 -Source https://www.myget.org/F/seay/api/v3/index.json
> nuget.exe install FontAwesomeNet -Version 1.1.0 -Source https://www.myget.org/F/seay/api/v3/index.json
> dotnet add package FontAwesomeNet --version 1.1.0 --source https://www.myget.org/F/seay/api/v3/index.json
source https://www.myget.org/F/seay/api/v3/index.json
nuget FontAwesomeNet ~> 1.1.0
Copy to clipboard
> choco install FontAwesomeNet --version 1.1.0 --source https://www.myget.org/F/seay/api/v2
Import-Module PowerShellGet
Register-PSRepository -Name "seay" -SourceLocation "https://www.myget.org/F/seay/api/v2"
Install-Module -Name "FontAwesomeNet" -RequiredVersion "1.1.0" -Repository "seay"
Copy to clipboard
FontAwesomeNet
Font-Awesome for .NET(Windows Forms and WPF)
开发环境
Windows 10 + Visual Studio 2013 + .NetFramework 3.5
功能
- 将 FontAwesome 图标生成图片和 Icon 图标
使用
可以在 Windows Forms 和 WPF 程序中使用。
- 添加类库,可以通过 nuget 安装。
PM Install-Package FontAwesomeNet
添加 FontAwesomeNet 命名空间:FontAwesomeNet。
示例
// get FontAwesome icon class names(type is Dictionary<string, int>)
string[] names = FontAwesome.TypeDict.Select(v => v.Key).ToArray();
// use FontAwesome icon class name get FontAwesome icon Unicode value
int val = FontAwesome.TypeDict["fa-heart"];//0xf004
// defalut:
Bitmap bmp = FontAwesome.GetImage(val);//0xf004
Icon ico = FontAwesome.GetIcon(val);//0xf004
// custom:
FontAwesome.IconSize = 128;//change icon size
FontAwesome.ForeColer = Color.Purple;//change icon forecolor
Bitmap bmp = FontAwesome.GetImage(val);//0xf004
Icon ico = FontAwesome.GetIcon(val);//0xf004
协议
如有问题,欢迎指出。
Font-Awesome-4.7.0 for Windows Forms and WPF v1.1.0
Support self-contained font files, no need to install fonts to the system.
- .NETFramework 3.5: 3.5.0.0
OwnersSeay |
Authorsseayxu |
Project URLhttps://github.com/seayxu/FontAwesome |
LicenseMIT |
TagsFontAwesome,FontAwesomeNet,WindowsForms,WPF |
Info84 total downloads |
32 downloads for version 1.1.0 |
Download (111.13 KB) |
Found on the current feed only |
Package history
Version | Size | Last updated | Downloads | Mirrored? | |||
---|---|---|---|---|---|---|---|
1.1.0 | 111.13 KB | Tue, 24 Jan 2017 14:24:52 GMT | 32 | ||||
1.0.0 | 14.39 KB | Thu, 19 Jan 2017 15:19:37 GMT | 14 | ||||
1.0.0-pre1 | 14.4 KB | Thu, 19 Jan 2017 14:48:15 GMT | 38 |