Skip to main content
A newer version of this page is available. .
Tab

CardViewCardStyle.Height Property

Gets or sets the card height.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.2.dll

Declaration

public override Unit Height { get; set; }

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

WebForms:

<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