Back to Devexpress

GridOptionsPrint.UsePrintStyles Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridoptionsprint.md

latest2.6 KB
Original Source

GridOptionsPrint.UsePrintStyles Property

Gets or sets whether print appearances are used when the grid control is printed/exported.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool UsePrintStyles { get; set; }
vb
<DefaultValue(True)>
<XtraSerializableProperty>
Public Overridable Property UsePrintStyles As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true to use print appearances when the grid control is printed/exported; false to use View appearances.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to UsePrintStyles
GridView

.OptionsPrint .UsePrintStyles

|

Remarks

If the UsePrintStyles option is set to true , the appearance settings used to paint the View elements when the grid control is printed are specified by the View’s GridView.AppearancePrint property. Otherwise, the appearance settings provided by the GridView.Appearance property are used.

See Also

Appearance

AppearancePrint

EnableAppearanceEvenRow

EnableAppearanceOddRow

GridOptionsPrint Class

GridOptionsPrint Members

DevExpress.XtraGrid.Views.Grid Namespace