CaptchaImageProperties.Height Property

Gets or sets the challenge image‘s height.

Namespace: DevExpress.Web.Captcha

Assembly: DevExpress.Web.v21.1.dll

Declaration

[DefaultValue(80)]
public int Height { get; set; }

Property Value

Type Default Description
Int32

80

A Unit that represents the challenge image’s height.

Remarks

Use the Height property to specify the height of the challenge image.

Example

The following part of the ASPxCaptcha - Custom Appearance online demo illustrates how to implement a captcha control with a custom appearance.

In this example, the control’s Refresh Button.ASPxCaptcha and Text Box.ASPxCaptcha are hidden, and their functionaliry is implemented in a custom manner using separate controls (the IMG element, ASPxLabel, ASPxTextBox).

function GetRefreshButton() {
    return document.getElementById("refreshButton");
}        

function OnCaptchaBeginCallback(s, e) {
    var refreshButton = GetRefreshButton();
    refreshButton.src = "Images/refreshButtonAnimated.gif";
}

function OnCaptchaEndCallback(s, e) {
    var refreshButton = GetRefreshButton();
    refreshButton.src = "Images/refreshButton.gif"; 
    tbCode.SetValue("");
...   
}
See Also