15 instantiations of Margins
System.Drawing (4)
commonui\System\Drawing\Printing\MarginsConverter.cs (2)
91
return new
Margins
(values[0], values[1], values[2], values[3]);
171
return new
Margins
((int)left,
commonui\System\Drawing\Printing\PageSettings.cs (1)
35
private Margins margins = new
Margins
();
commonui\System\Drawing\Printing\PrinterUnitConvert.cs (1)
97
Margins result = new
Margins
();
System.Windows.Forms (2)
winforms\Managed\System\WinForms\Printing\PageSetupDialog.cs (2)
176
value = new
Margins
(0, 0, 0, 0);
334
Margins newMargins = new
Margins
();
System.Workflow.ComponentModel (9)
AuthoringOM\Design\Dialogs\WorkflowPageSetupDialog.cs (1)
1222
Margins margins = new
Margins
(
AuthoringOM\Design\WorkflowLayouts.cs (4)
335
private static Margins DefaultPageMargins = new
Margins
(20, 20, 20, 20);
342
private Margins headerFooterMargins = new
Margins
(0, 0, 0, 0);
856
Margins hardMargins = new
Margins
();
860
Margins adjustedMargins = new
Margins
(Math.Max(margins.Left, hardMargins.Left),
AuthoringOM\Design\WorkflowPrinting.cs (4)
122
Margins margins = new
Margins
(Math.Max(printPageArg.PageSettings.Margins.Left, hardMargins.Left),
176
headerFooterData.HeaderFooterMargins = new
Margins
(0, 0, this.pageSetupData.HeaderMargin, this.pageSetupData.FooterMargin);
236
return new
Margins
(leftMargin, rightMargin, topMargin, bottomMargin);
322
Margins margins = new
Margins
(Math.Max(printPageArg.PageSettings.Margins.Left, hardMargins.Left),
52 references to Margins
System.Drawing (25)
commonui\System\Drawing\Printing\Margins.cs (12)
47
/// Initializes a new instance of a the <see cref='System.Drawing.Printing.
Margins
'/> class with one-inch margins.
56
/// Initializes a new instance of a the <see cref='System.Drawing.Printing.
Margins
'/> class with the specified left, right, top, and bottom
238
/// Compares this <see cref='System.Drawing.Printing.
Margins
'/> to a specified <see cref='System.Drawing.Printing.
Margins
'/> to see whether they
243
Margins
margins = obj as
Margins
;
277
/// Tests whether two <see cref='System.Drawing.Printing.
Margins
'/> objects
280
public static bool operator ==(
Margins
m1,
Margins
m2) {
293
/// Tests whether two <see cref='System.Drawing.Printing.
Margins
'/> objects are different.
296
public static bool operator !=(
Margins
m1,
Margins
m2) {
commonui\System\Drawing\Printing\MarginsConverter.cs (7)
26
/// type converter to convert <see cref='System.Drawing.Printing.
Margins
'/> to and from various other representations, such as a string.</para>
112
if( value is
Margins
){
114
Margins
margins = (
Margins
)value;
133
Margins
margins = (
Margins
)value;
135
ConstructorInfo ctor = typeof(
Margins
).GetConstructor(new Type[] {
commonui\System\Drawing\Printing\PageSettings.cs (3)
35
private
Margins
margins = new Margins();
177
public
Margins
Margins {
323
result.margins = (
Margins
) margins.Clone();
commonui\System\Drawing\Printing\PrinterUnitConvert.cs (3)
96
public static
Margins
Convert(
Margins
value, PrinterUnit fromUnit, PrinterUnit toUnit) {
97
Margins
result = new Margins();
System.Windows.Forms (5)
winforms\Managed\System\WinForms\Printing\PageSetupDialog.cs (5)
38
private
Margins
minMargins;
172
public
Margins
MinMargins {
334
Margins
newMargins = new Margins();
382
Margins
margins = PrinterUnitConvert.Convert(MinMargins, PrinterUnit.Display, toUnit);
390
Margins
margins = PrinterUnitConvert.Convert(pageSettings.Margins, PrinterUnit.Display, toUnit);
System.Workflow.ComponentModel (22)
AuthoringOM\Design\Dialogs\WorkflowPageSetupDialog.cs (5)
961
Margins
margins = GetMarginsFromUI();
1065
Margins
margins = GetMarginsFromUI();
1212
private void SetMarginsToUI(
Margins
margins)
1220
private
Margins
GetMarginsFromUI()
1222
Margins
margins = new Margins(
AuthoringOM\Design\WorkflowLayouts.cs (9)
335
private static
Margins
DefaultPageMargins = new Margins(20, 20, 20, 20);
342
private
Margins
headerFooterMargins = new Margins(0, 0, 0, 0);
344
private
Margins
pageMargins = PrintPreviewLayout.DefaultPageMargins;
724
Margins
margins = GetAdjustedMargins(graphics);
841
private
Margins
GetAdjustedMargins(Graphics graphics)
843
Margins
margins = this.printDocument.PageSetupData.Margins;
856
Margins
hardMargins = new Margins();
860
Margins
adjustedMargins = new Margins(Math.Max(margins.Left, hardMargins.Left),
880
private
Margins
PageMargins
AuthoringOM\Design\WorkflowPrinting.cs (8)
121
Margins
hardMargins = GetHardMargins(graphics);
122
Margins
margins = new Margins(Math.Max(printPageArg.PageSettings.Margins.Left, hardMargins.Left),
215
internal
Margins
GetHardMargins(Graphics graphics)
321
Margins
hardMargins = GetHardMargins(graphics);
322
Margins
margins = new Margins(Math.Max(printPageArg.PageSettings.Margins.Left, hardMargins.Left),
384
internal
Margins
HeaderFooterMargins;
406
private
Margins
margins = null;
549
public
Margins
Margins