Back to Devexpress

CardView.PrintMaximumCardColumns Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-card-dot-cardview-0b78a9d6.md

latest3.1 KB
Original Source

CardView.PrintMaximumCardColumns Property

Gets or sets a value defining the maximum number of card columns for printing/exporting.

Namespace : DevExpress.XtraGrid.Views.Card

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DefaultValue(-1)]
[DXCategory("Printing")]
[XtraSerializableProperty]
public int PrintMaximumCardColumns { get; set; }
vb
<DefaultValue(-1)>
<XtraSerializableProperty>
<DXCategory("Printing")>
Public Property PrintMaximumCardColumns As Integer

Property Value

TypeDefaultDescription
Int32-1

The maximum number of printed/exported card columns.

|

Remarks

The default value for the PrintMaximumCardColumns property means that the number of card columns in the print/export output is determined only by page margins and the CardView.CardWidth property value. At the same time, if the CardOptionsPrint.AutoHorzWidth option is active, the output document will contain only one column of cards, but the cards in that column are resized to match page width. The following image demonstrates a report page with one column of cards (the CardOptionsPrint.AutoHorzWidth option is active and the PrintMaximumCardColumns property value is -1):

The following images demonstrate the difference between report pages for different values of the CardOptionsPrint.AutoHorzWidth and the PrintMaximumCardColumns properties:

The PrintMaximumCardColumns value is 3 and the AutoHorzWidth property value is true.
The PrintMaximumCardColumns value is 3 but the AutoHorzWidth property value is false.

See Also

Printing Overview

CardView Class

CardView Members

DevExpress.XtraGrid.Views.Card Namespace