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

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

WebBrowser.DocumentTitle プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

WebBrowser コントロールに現在表示されているドキュメントタイトル取得します

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

例外例外
例外種類条件

ObjectDisposedException

この WebBrowser インスタンス無効になっています。

InvalidOperationException

IWebBrowser2 の実装への参照を、基になる ActiveX WebBrowser から取得できませんでした

解説解説
使用例使用例

DocumentTitle プロパティ使用してフォームタイトル バー現在のドキュメントタイトル更新する方法次のコード例示します。この例は、フォームwebBrowser1 という WebBrowser コントロール存在することを前提にしています。

コード全体については、「方法 : Windows フォーム アプリケーションWeb ブラウザ機能追加する」を参照してください

' Updates the title bar with the current document title.
Private Sub webBrowser1_DocumentTitleChanged(
 _
    ByVal sender As Object,
 ByVal e As EventArgs) _
    Handles webBrowser1.DocumentTitleChanged

    Me.Text = webBrowser1.DocumentTitle

End Sub
// Updates the title bar with the current document title.
private void webBrowser1_DocumentTitleChanged(object
 sender, EventArgs e)
{
    this.Text = webBrowser1.DocumentTitle;
}
// Updates the title bar with the current document title.
void WebBrowser1_DocumentTitleChanged( Object^ /*sender*/, System::EventArgs^
 /*e*/ )
{
   this->Text = WebBrowser1->DocumentTitle;
}
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からWebBrowser.DocumentTitle プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からWebBrowser.DocumentTitle プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からWebBrowser.DocumentTitle プロパティ を検索

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

辞書ショートカット

すべての辞書の索引

「WebBrowser.DocumentTitle プロパティ」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS