'宣言 Public ReadOnly Property PrintPreviewDialog As System.Windows.Forms.PrintPreviewDialog
public System.Windows.Forms.PrintPreviewDialog PrintPreviewDialog {get;}
'宣言 Public ReadOnly Property PrintPreviewDialog As System.Windows.Forms.PrintPreviewDialog
public System.Windows.Forms.PrintPreviewDialog PrintPreviewDialog {get;}
次のコードは、 PrintPreviewDialog プロパティを使用して、独自のキャプションを付けたプレビューダイアログを最大化した状態で表示します。
Dim dlg As Form = CType(flex.PrintParameters.PrintPreviewDialog, Form) dlg.Text = "Custom Caption" dlg.StartPosition = FormStartPosition.Manual dlg.WindowState = FormWindowState.Maximized flex.PrintGrid("test", PrintGridFlags.ShowPreviewDialog)
Form dlg = flex.PrintParameters.PrintPreviewDialog as Form; dlg.Text = "Custom Caption"; dlg.StartPosition = FormStartPosition.Manual; dlg.WindowState = FormWindowState.Maximized; flex.PrintGrid("test", PrintGridFlags.ShowPreviewDialog);