windowsforms-devexpress-dot-xtragrid-dot-views-dot-card-dot-cardoptionsprint.md
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
[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool AutoHorzWidth { get; set; }
<DefaultValue(False)>
<XtraSerializableProperty>
Public Overridable Property AutoHorzWidth As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true if cards are automatically resized horizontally to fit the report page’s width; otherwise, false.
|
You can access this nested property as listed below:
| Object Type | Path to AutoHorzWidth |
|---|---|
| CardView |
.OptionsPrint .AutoHorzWidth
|
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