Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CardOptionsPrint.AutoHorzWidth Property

Gets or sets whether cards in the print/export output are automatically resized horizontally to fit the report page’s width.

Namespace: DevExpress.XtraGrid.Views.Card

Assembly: DevExpress.XtraGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

#Declaration

[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool AutoHorzWidth { get; set; }

#Property Value

Type Default Description
Boolean false

true if cards are automatically resized horizontally to fit the report page’s width; otherwise, false.

#Property Paths

You can access this nested property as listed below:

Object Type Path to AutoHorzWidth
CardView
.OptionsPrint .AutoHorzWidth

#Remarks

The number of card columns printed/exported is specified by the CardView.PrintMaximumCardColumns property.

The following image shows the View’s print preview before and after the AutoHorzWidth option has been activated. The CardView.PrintMaximumCardColumns property value is -1.

CardOptionsPrint_AutoHorzWidth

See Also