New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Defines the fluent API for configuring CaptchaMessagesSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class CaptchaMessagesSettingsBuilder

Inheritance: objectCaptchaMessagesSettingsBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

CaptchaMessagesSettingsBuilder method.

C#
public CaptchaMessagesSettingsBuilder(CaptchaMessagesSettings container)
Parameters:containerCaptchaMessagesSettings

Properties

Gets the settings being configured.

C#
protected CaptchaMessagesSettings Container { get; }

Methods

The title message of the audio button.

C#
public CaptchaMessagesSettingsBuilder Audio(string value)
Parameters:valuestring

The value for Audio

Returns:

CaptchaMessagesSettingsBuilder

Returns the current CaptchaMessagesSettingsBuilder instance.

Example:
C#
@( Html.Kendo().Captcha()
.Name("captcha")
.Messages(msg => msg.Audio("Play captcha"))
)

The alt value of the captcha's image tag.

C#
public CaptchaMessagesSettingsBuilder ImageAlt(string value)
Parameters:valuestring

The value for ImageAlt

Returns:

CaptchaMessagesSettingsBuilder

Returns the current CaptchaMessagesSettingsBuilder instance.

Example:
C#
@( Html.Kendo().Captcha()
.Name("captcha")
.Messages(msg => msg.ImageAlt("Enter the text from the image."))
)

The title message of the reset button.

C#
public CaptchaMessagesSettingsBuilder Reset(string value)
Parameters:valuestring

The value for Reset

Returns:

CaptchaMessagesSettingsBuilder

Returns the current CaptchaMessagesSettingsBuilder instance.

Example:
C#
@( Html.Kendo().Captcha()
.Name("captcha")
.Messages(msg => msg.Reset("Reset"))
)

The message rendered when validation is successful.

C#
public CaptchaMessagesSettingsBuilder Success(string value)
Parameters:valuestring

The value for Success

Returns:

CaptchaMessagesSettingsBuilder

Returns the current CaptchaMessagesSettingsBuilder instance.

Example:
C#
@( Html.Kendo().Captcha()
.Name("captcha")
.Messages(msg => msg.Success("Successful Verification"))
)