Back to Devexpress

OptionsPrintControl.AllowFitToPage Property

windowsforms-devexpress-dot-xtralayout-dot-optionsprintcontrol-d644412c.md

latest2.4 KB
Original Source

OptionsPrintControl.AllowFitToPage Property

Gets or sets whether the LayoutControl, when printed, is horizontally stretched to the width of the printing page.

Namespace : DevExpress.XtraLayout

Assembly : DevExpress.XtraLayout.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDefaultDescription
Booleantrue

true if the LayoutControl is fit to the page width; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AllowFitToPage
LayoutControl

.OptionsPrint .AllowFitToPage

|

Remarks

A GridControl or TreeList control, when residing in the Layout Control, are stretched to fit the printed page, regardless of the AllowFitToPage setting. You can prevent these controls from being stretched with the GridOptionsPrint.AutoWidth and TreeListOptionsPrint.AutoWidth option, respectively.

See Also

Printing and Export

OptionsPrintControl Class

OptionsPrintControl Members

DevExpress.XtraLayout Namespace