DocumentListEventArgs.Path プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DocumentListEventArgs.Path プロパティの意味・解説 

DocumentListEventArgs.Path プロパティ

DocumentList コントロール削除または選択されファイルへのパス取得または設定します

名前空間: Microsoft.WindowsCE.Forms
アセンブリ: 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
private void OnDelDoc(object obj, DocumentListEventArgs
 docg)
{
    statusBar1.Text += "Deleted: " + docg.Path;

    // Add code to close any instances of the file.
}
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DocumentListEventArgs クラス
DocumentListEventArgs メンバ
Microsoft.WindowsCE.Forms 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

DocumentListEventArgs.Path プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



DocumentListEventArgs.Path プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS