Tab

CardViewCardStyle.Height Property

Gets or sets the card height.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

Declaration

public override Unit Height { get; set; }
Public Overrides Property Height As Unit

Property Value

Type Description
Unit

A Unit value that specifies the card height.

Remarks

Use the Height and CardViewCardStyle.Width properties to specify a card's height and width respectively.

Example

Web Forms:

<dx:ASPxCardView ID="CardView" runat="server" DataSourceID="InvoicesDataSource" Width="100%">
    <Columns>
    ...
    </Columns> 
    <Styles>
        <Card Height="10px" />
    </Styles>  
</dx:ASPxCardView>

MVC:

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

}).Bind(Model).GetHtml()
See Also