Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool AllowFitToPage { get; set; }

#Property Value

Type Default Description
Boolean true

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

#Property Paths

You can access this nested property as listed below:

Object Type Path 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