Back to Devexpress

CardViewCardStyle.Height Property

aspnet-devexpress-dot-web-dot-cardviewcardstyle.md

latest1.7 KB
Original Source

CardViewCardStyle.Height Property

Gets or sets the card height.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

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

Property Value

TypeDescription
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:

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

MVC:

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

}).Bind(Model).GetHtml()

See Also

CardViewCardStyle Class

CardViewCardStyle Members

DevExpress.Web Namespace