VerifyCodeAttribute Class
类库说明文档
| VerifyCodeAttribute Class |
验证码的相关属性,无法继承该类
Namespace: DCSoft.Utility.Drawing
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)
C#
public sealed class VerifyCodeAttribute
The VerifyCodeAttribute type exposes the following members.
| Name | Description | |
|---|---|---|
| VerifyCodeAttribute |
默认构造函数
| |
| VerifyCodeAttribute(Int32) |
构造函数
|
| Name | Description | |
|---|---|---|
| Equals | (Inherited from Object.) | |
| GetHashCode | (Inherited from Object.) | |
| GetType | (Inherited from Object.) | |
| ToString | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| BgColor |
提供一组图像背景色,随机选择其中的一种,默认值 Color.White
| |
| BgNoiseLineColor |
背景噪音线的颜色 System.Drawing.Color 结构。
默认值 Color.LightBlue(淡蓝色)
| |
| BgNoiseLineNum |
背景噪音线的数量,默认值 10
| |
| CodeNum |
验证码位数,默认值 4
| |
| FgNoisePointNum |
前景噪音点的数量,默认值 120
| |
| FontEndColor |
表示字体渐变结束色的 System.Drawing.Color 结构。
默认值 Color.DarkCyan(暗青色)
| |
| FontName |
字体名称,默认值 宋体
| |
| FontSize |
字体的全身大小(采用 unit 参数指定的单位)。默认值 18
| |
| FontStartColor |
表示字体渐变起始色的 System.Drawing.Color 结构。
默认值 Color.DarkCyan(暗青色)
| |
| HasDrawBgNoiseLine |
是否画背景噪音线,默认值 false
| |
| HasDrawFgNoisePoint |
是否画前景噪音点(颜色随机生成),默认值 true
| |
| IsRandomBgLineColor |
是否随机生成背景噪音线的颜色,默认值 true
| |
| Style |
字体的 System.Drawing.FontStyle,默认值 FontStyle.Bold
|