Skip to main content

TileViewBuilder.ItemMargin(Double) Method

Specifies the distance in pixels between adjacent tiles. Mirrors the client-side itemMargin option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public TileViewBuilder ItemMargin(
    double value
)

Parameters

Name Type Description
value Double

The option value.

Returns

Type Description
TileViewBuilder

A reference to this instance after the method is called.

Remarks

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

@(Html.DevExtreme().TileView()
    .ItemMargin(10)
)
See Also