Skip to main content

MVCxTimeEditProperties.Caption Property

Gets or sets the editor caption.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.2.dll

Declaration

public string Caption { get; set; }

Property Value

Type Description
String

A String value that specifies the text content of the editor caption.

Remarks

The code sample below demonstrates how to define a caption for the TimeEdit editor.

@Html.DevExpress().TimeEdit(settings => {
    settings.Name = "ArrivalTime";
    settings.Properties.Caption = "Arrival Time";
}).Bind(Model.ArrivalTime).GetHtml()
See Also