Back to Devexpress

CardViewSettings.Styles Property

aspnetmvc-devexpress-dot-web-dot-mvc-dot-cardviewsettings-bcf9ef6c.md

latest1.5 KB
Original Source

CardViewSettings.Styles Property

Provides access to the style settings that control the appearance of the extension’s visual elements.

Namespace : DevExpress.Web.Mvc

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

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public CardViewStyles Styles { get; }
vb
Public ReadOnly Property Styles As CardViewStyles

Property Value

TypeDescription
CardViewStyles

A CardViewStyles object that provides style settings for view elements.

|

Remarks

The returned object provides a number of properties that allow style settings of various visual elements to be customized.

Example

csharp
@Html.DevExpress().CardView(settings => {
    settings.Name = "cardView";
    ...
    settings.Styles.Card.Height = Unit.Pixel(10);

}).Bind(Model).GetHtml()

See Also

Card View

CardViewSettings Class

CardViewSettings Members

DevExpress.Web.Mvc Namespace