Back to Devexpress

ScrollViewBuilder.Direction(ScrollDirection) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-scrollviewbuilder-dot-direction-x28-devextreme-dot-aspnet-dot-mvc-dot-scrolldirection-x29.md

latest1.3 KB
Original Source

ScrollViewBuilder.Direction(ScrollDirection) Method

A string value specifying the available scrolling directions. Mirrors the client-side direction option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public ScrollViewBuilder Direction(
    ScrollDirection value
)

Parameters

NameTypeDescription
valueScrollDirection

The option value.

|

Returns

TypeDescription
ScrollViewBuilder

A reference to this instance after the method is called.

|

Remarks

Use the following notation to set the option’s value:

cshtml
@(Html.DevExtreme().ScrollView()
    .Direction(ScrollDirection.Both)
)

See Also

ScrollViewBuilder Class

ScrollViewBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace