PrintDocument for WinForms
FileOpen(String) メソッド


C1.Win.PrintPreview.6 アセンブリ > C1.Win.C1Preview 名前空間 > C1PreviewPane クラス > FileOpen メソッド : FileOpen(String) メソッド
The name of the file to load, or the initial directory for the file open dialog.
Loads the specified file (which must be a valid C1DX, C1D or C1MDX document) into the current preview pane.

If fileName does not exist or is a directory, shows the file open dialog and allows the user to select a file to load. In that case fileName specifies the initial directory for the dialog.

シンタックス
'宣言
 
Public Overloads Function FileOpen( _
   ByVal fileName As System.String _
) As System.Boolean
'使用法
 
Dim instance As C1PreviewPane
Dim fileName As System.String
Dim value As System.Boolean
 
value = instance.FileOpen(fileName)
public System.bool FileOpen( 
   System.string fileName
)

パラメータ

fileName
The name of the file to load, or the initial directory for the file open dialog.

戻り値の型

true if the file was successfully loaded, false if an error occurred or the user cancelled the dialog.
解説
If a handler is assigned to the Error event, that handler is invoked but no message is shown to the user.
参照

C1PreviewPane クラス
C1PreviewPane メンバ
オーバーロード一覧
FileOpen メソッド