aspnet-devexpress-dot-web-dot-cardviewcardstyle.md
Gets or sets the card height.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public override Unit Height { get; set; }
Public Overrides Property Height As Unit
| Type | Description |
|---|---|
| Unit |
A Unit value that specifies the card height.
|
Use the Height and CardViewCardStyle.Width properties to specify a card’s height and width respectively.
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