VerifyCodeAttribute Properties

DCSoft.DBUtilityGeneric

VerifyCodeAttribute Properties

The VerifyCodeAttribute type exposes the following members.

Properties
  Name Description
Public property BgColor
提供一组图像背景色,随机选择其中的一种,默认值 Color.White
Public property BgNoiseLineColor
背景噪音线的颜色 System.Drawing.Color 结构。 默认值 Color.LightBlue(淡蓝色)
Public property BgNoiseLineNum
背景噪音线的数量,默认值 10
Public property CodeNum
验证码位数,默认值 4
Public property FgNoisePointNum
前景噪音点的数量,默认值 120
Public property FontEndColor
表示字体渐变结束色的 System.Drawing.Color 结构。 默认值 Color.DarkCyan(暗青色)
Public property FontName
字体名称,默认值 宋体
Public property FontSize
字体的全身大小(采用 unit 参数指定的单位)。默认值 18
Public property FontStartColor
表示字体渐变起始色的 System.Drawing.Color 结构。 默认值 Color.DarkCyan(暗青色)
Public property HasDrawBgNoiseLine
是否画背景噪音线,默认值 false
Public property HasDrawFgNoisePoint
是否画前景噪音点(颜色随机生成),默认值 true
Public property IsRandomBgLineColor
是否随机生成背景噪音线的颜色,默认值 true
Public property Style
字体的 System.Drawing.FontStyle,默认值 FontStyle.Bold
Top
See Also