WebBrowser.ShowPropertiesDialog メソッド

定義

現在のドキュメントについて、Internet Explorer の [プロパティ] ダイアログ ボックスを開きます。

public:
 void ShowPropertiesDialog();
public void ShowPropertiesDialog ();
member this.ShowPropertiesDialog : unit -> unit
Public Sub ShowPropertiesDialog ()

次のコード例では、 メソッドを使用ShowPropertiesDialogして、Internet Explorer の [ファイル] メニューと同様の [プロパティ] メニュー オプションを実装する方法を示します。 この例では、フォームに というメニュー項目と という MenuItemFileProperties コントロールがあるメニューが WebBrowser 含まれている必要があります webBrowser1.

// Displays the Properties dialog box.
void MenuItemFileProperties_Click( System::Object^ /*sender*/, System::EventArgs^ /*e*/ )
{
   this->WebBrowser1->ShowPropertiesDialog();
}
// Displays the Properties dialog box.
private void propertiesToolStripMenuItem_Click(
    object sender, EventArgs e)
{
    webBrowser1.ShowPropertiesDialog();
}
' Displays the Properties dialog box.
Private Sub propertiesToolStripMenuItem_Click( _
    ByVal sender As Object, ByVal e As EventArgs) _
    Handles propertiesToolStripMenuItem.Click

    webBrowser1.ShowPropertiesDialog()

End Sub

注釈

このメソッドを使用すると、Internet Explorer の [ファイル] メニューと同様の [プロパティ] メニュー オプションを実装できます。 このメソッドは、[ プロパティ ] ダイアログ ボックスを表示します。このダイアログ ボックスには、現在のドキュメントの種類、URL、サイズ、作成日や変更日などの情報が含まれます。

適用対象