4 writes to DefaultPageSettings
System.Workflow.ComponentModel (4)
AuthoringOM\Design\CommandSet.cs (2)
794
printDoc.
DefaultPageSettings
= printDialog.Document.DefaultPageSettings;
801
printDoc.
DefaultPageSettings
= cachedPageSettings;
AuthoringOM\Design\Dialogs\WorkflowPageSetupDialog.cs (2)
1037
this.printDocument.
DefaultPageSettings
= printDialog.Document.DefaultPageSettings;
1168
this.printDocument.
DefaultPageSettings
= new PageSettings(this.printDocument.PrinterSettings);
36 references to DefaultPageSettings
System.Drawing (9)
commonui\System\Drawing\Printing\DefaultPrintController.cs (2)
133
graphics.TranslateTransform(document.
DefaultPageSettings
.Margins.Left, document.
DefaultPageSettings
.Margins.Top);
commonui\System\Drawing\Printing\PreviewPrintController.cs (2)
142
graphics.TranslateTransform(document.
DefaultPageSettings
.Margins.Left, document.
DefaultPageSettings
.Margins.Top);
commonui\System\Drawing\Printing\PrintController.cs (3)
175
QueryPageSettingsEventArgs queryEvent = new QueryPageSettingsEventArgs((PageSettings) document.
DefaultPageSettings
.Clone());
208
PageSettings documentPageSettings = (PageSettings) document.
DefaultPageSettings
.Clone();
282
modeHandle = (SafeDeviceModeHandle)document.PrinterSettings.GetHdevmode(document.
DefaultPageSettings
);
commonui\System\Drawing\Printing\PrintPreviewGraphics.cs (2)
63
graphics.TranslateTransform(printDocument.
DefaultPageSettings
.Margins.Left, printDocument.
DefaultPageSettings
.Margins.Top);
System.Windows.Forms (2)
winforms\Managed\System\WinForms\Printing\PageSetupDialog.cs (1)
139
pageSettings = printDocument.
DefaultPageSettings
;
winforms\Managed\System\WinForms\Printing\PrintDialog.cs (1)
144
return Document.
DefaultPageSettings
;
System.Workflow.ComponentModel (25)
AuthoringOM\Design\CommandSet.cs (2)
789
PageSettings cachedPageSettings = printDoc.
DefaultPageSettings
;
794
printDoc.DefaultPageSettings = printDialog.Document.
DefaultPageSettings
;
AuthoringOM\Design\Dialogs\WorkflowPageSetupDialog.cs (21)
1006
this.printDocument.
DefaultPageSettings
.PaperSize = (PaperSize)this.paperSizeComboBox.SelectedItem;
1010
this.printDocument.
DefaultPageSettings
.PaperSource = (PaperSource)this.paperSourceComboBox.SelectedItem;
1012
this.printDocument.
DefaultPageSettings
.Landscape = this.printDocument.PageSetupData.Landscape;
1013
this.printDocument.
DefaultPageSettings
.Margins = margins;
1016
this.printDocument.PrinterSettings.DefaultPageSettings.PaperSize = this.printDocument.
DefaultPageSettings
.PaperSize;
1017
this.printDocument.PrinterSettings.DefaultPageSettings.PaperSource = this.printDocument.
DefaultPageSettings
.PaperSource;
1037
this.printDocument.DefaultPageSettings = printDialog.Document.
DefaultPageSettings
;
1039
if (this.printDocument.
DefaultPageSettings
.Landscape)
1073
physicalPageSize = this.printDocument.
DefaultPageSettings
.Bounds.Size;
1154
this.printDocument.
DefaultPageSettings
.PaperSize.Kind == paperSize.Kind &&
1155
this.printDocument.
DefaultPageSettings
.PaperSize.Width == paperSize.Width &&
1156
this.printDocument.
DefaultPageSettings
.PaperSize.Height == paperSize.Height)
1159
this.printDocument.
DefaultPageSettings
.PaperSize = paperSize;
1166
PaperKind paperKind = this.printDocument.
DefaultPageSettings
.PaperSize.Kind;
1173
this.printDocument.
DefaultPageSettings
.PaperSize.Width == paperSize.Width &&
1174
this.printDocument.
DefaultPageSettings
.PaperSize.Height == paperSize.Height)
1177
this.printDocument.
DefaultPageSettings
.PaperSize = paperSize;
1186
this.printDocument.
DefaultPageSettings
.PaperSize = this.paperSizeComboBox.SelectedItem as PaperSize;
1197
this.printDocument.
DefaultPageSettings
.PaperSource.Kind == paperSource.Kind &&
1198
this.printDocument.
DefaultPageSettings
.PaperSource.SourceName == paperSource.SourceName)
1206
this.printDocument.
DefaultPageSettings
.PaperSource = this.paperSourceComboBox.SelectedItem as PaperSource;
AuthoringOM\Design\WorkflowLayouts.cs (2)
825
PaperSize paperSize = this.printDocument.
DefaultPageSettings
.PaperSize;
826
this.printDocument.
DefaultPageSettings
.PaperSize = paperSize;