DocumentListEventArgs.Path プロパティ
アセンブリ: Microsoft.WindowsCE.Forms (microsoft.windowsce.forms.dll 内)
構文
解説
このプロパティを使用すると、DeletingDocument イベントへの応答として、開いているファイルのインスタンスを閉じることができます。また、DocumentActivated イベントへの応答として、ファイルを開く際にも使用できます。
DeletingDocument イベントを処理するメソッドを定義するコード例を次に示します。この例では、DocumentListEventArgs の Path プロパティを使用して、削除されたファイルへのパスを取得しています。このコード例は、DocumentList クラスのトピックで取り上げているコード例の一部分です。
' Handle the DeletingDocument ' event with code to close the file. Private Sub DocList_DeletingDocument(ByVal sender As Object, _ ByVal docevent As Microsoft.WindowsCE.Forms.DocumentListEventArgs) _ Handles DocumentList1.DeletingDocument StatusBar1.Text = "Deleted: " & docevent.Path ' Add code to close any instances of the file. End Sub
プラットフォーム
バージョン情報
参照
- DocumentListEventArgs.Path プロパティのページへのリンク