Back to Devexpress

CardOptionsPrint.AutoHorzWidth Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-card-dot-cardoptionsprint.md

latest2.4 KB
Original Source

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.v25.2.dll

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

Declaration

csharp
[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool AutoHorzWidth { get; set; }
vb
<DefaultValue(False)>
<XtraSerializableProperty>
Public Overridable Property AutoHorzWidth As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

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 TypePath 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.

See Also

PrintMaximumCardColumns

CardOptionsPrint Class

CardOptionsPrint Members

DevExpress.XtraGrid.Views.Card Namespace