CardViewCardStyle.Height Property
In This Article
Gets or sets the card height.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
#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