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 菜单上的选项。 此示例要求窗体包含一个菜单,其中包含一个菜单
// 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 File 菜单上的 Properties 菜单选项。 此方法显示 “属性 ”对话框,其中包含有关当前文档的信息,例如其类型、URL、大小和创建和修改日期。