1 write to _previewControl
System.Windows.Forms (1)
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
55
_previewControl
= new PrintPreviewControl();
34 references to _previewControl
System.Windows.Forms (34)
System\Windows\Forms\Printing\PrintPreviewDialog.cs (34)
686
get =>
_previewControl
.Document;
687
set =>
_previewControl
.Document = value;
705
public PrintPreviewControl PrintPreviewControl =>
_previewControl
;
910
_previewControl
.Size = new Size(792, 610);
911
_previewControl
.Location = new Point(0, 43);
912
_previewControl
.Dock = DockStyle.Fill;
913
_previewControl
.StartPageChanged += PreviewControl_StartPageChanged;
945
_previewControl
.TabIndex = 0;
967
Controls.Add(
_previewControl
);
989
_previewControl
.InvalidatePreview();
1045
if (ActiveControl ==
_previewControl
)
1066
_pageCounter.Value =
_previewControl
.StartPage + 1;
1080
_previewControl
.AutoZoom = true;
1087
_previewControl
.Zoom = 5.00;
1094
_previewControl
.Zoom = 2.50;
1101
_previewControl
.Zoom = 1.50;
1108
_previewControl
.Zoom = 1.00;
1115
_previewControl
.Zoom = .75;
1122
_previewControl
.Zoom = .50;
1129
_previewControl
.Zoom = .25;
1136
_previewControl
.Zoom = .10;
1148
private void OnPrintToolStripButtonClick(object? sender, EventArgs e) =>
_previewControl
.Document?.Print();
1154
_previewControl
.Rows = 1;
1155
_previewControl
.Columns = 1;
1160
_previewControl
.Rows = 1;
1161
_previewControl
.Columns = 2;
1166
_previewControl
.Rows = 1;
1167
_previewControl
.Columns = 3;
1172
_previewControl
.Rows = 2;
1173
_previewControl
.Columns = 2;
1178
_previewControl
.Rows = 2;
1179
_previewControl
.Columns = 3;
1188
_previewControl
.StartPage = pageNum;
1195
_pageCounter.Value =
_previewControl
.StartPage + 1;