Back to Devexpress

MVCxTrackBarProperties.Caption Property

aspnetmvc-devexpress-dot-web-dot-mvc-dot-mvcxtrackbarproperties.md

latest1.6 KB
Original Source

MVCxTrackBarProperties.Caption Property

Gets or sets the TrackBar caption.

Namespace : DevExpress.Web.Mvc

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

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public string Caption { get; set; }
vb
Public Property Caption As String

Property Value

TypeDescription
String

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

|

Remarks

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

cshtml
@Html.DevExpress().TrackBar(settings => {
    settings.Name = "Range";
    settings.Properties.Caption = "Select Range";
    // ...
}).Bind(Model.Range).BindList(ViewBag.Items).GetHtml()

See Also

Data Editors - CaptionOnline demo:

TrackBar

MVCxTrackBarProperties Class

MVCxTrackBarProperties Members

DevExpress.Web.Mvc Namespace