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 のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

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

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

   

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



WebBrowser.DocumentTitle プロパティのページの著作権

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

©2026 GRAS Group, Inc.RSS