WebBrowser.ShowPropertiesDialog メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
現在のドキュメントの Internet Explorer Properties ダイアログ ボックスを開きます。
public:
void ShowPropertiesDialog();
public void ShowPropertiesDialog();
member this.ShowPropertiesDialog : unit -> unit
Public Sub ShowPropertiesDialog ()
例
次のコード例では、ShowPropertiesDialog メソッドを使用して、Properties メニュー オプションを実装する方法を示します。これは、Internet Explorer File メニューのオプションと似ています。 この例では、フォームに、 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
注釈
このメソッドを使用すると、Properties メニュー オプションを Internet Explorer File メニューと同様に実装できます。 このメソッドは、[ プロパティ ] ダイアログ ボックスを表示します。このダイアログ ボックスには、現在のドキュメントの種類、URL、サイズ、作成と変更の日付などの情報が含まれます。