Back to Devexpress

WorkbookPrintOptions.ShowMarginsWarning Property

officefileapi-devexpress-dot-xtraspreadsheet-dot-workbookprintoptions-fe170a58.md

latest1.9 KB
Original Source

WorkbookPrintOptions.ShowMarginsWarning Property

Gets or sets whether to show an error message when page margins are set outside the printable area.

Namespace : DevExpress.XtraSpreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

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

Property Value

TypeDefaultDescription
Booleantrue

true , to show the margins warning dialog; otherwise false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ShowMarginsWarning
DocumentOptions

.Print .ShowMarginsWarning

|

Remarks

Set the ShowMarginsWarning property to false to suppress the following dialog:

See Also

WorkbookPrintOptions Class

WorkbookPrintOptions Members

DevExpress.XtraSpreadsheet Namespace