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