html中调用window.,HtmlWindow.Open 方法 (System.Windows.Forms) | Microsoft Docs

在已命名的窗口中显示文件。Displays a file in the named window.

public:

System::Windows::Forms::HtmlWindow ^ Open(Uri ^ url, System::String ^ target, System::String ^ windowOptions, bool replaceEntry);

public System.Windows.Forms.HtmlWindow Open (Uri url, string target, string windowOptions, bool replaceEntry);

member this.Open : Uri * string * string * bool -> System.Windows.Forms.HtmlWindow

Public Function Open (url As Uri, target As String, windowOptions As String, replaceEntry As Boolean) As HtmlWindow

参数

url

描述要加载的文件位置的统一资源定位器。The Uniform Resource Locator that describes the location of the file to load.

target

要在其中打开资源的窗口的名称。The name of the window in which to open the resource. 它可以是开发人员提供的名称,或下列特殊值之一:This can be a developer-supplied name, or one of the following special values:

_blank:在新窗口中打开 url。_blank: Opens url in a new window. Works the same as a call to OpenNew(String, String).

_media:在“媒体”栏中打开 url。_media: Opens url in the Media bar.

_parent:在创建当前窗口的窗口中打开 url。_parent: Opens url in the window that created the current window.

_search:在“搜索”栏中打开 url。_search: Opens url in the Search bar.

_self:在当前窗口中打开 url。_self: Opens url in the current window.

_top:如果在属于 FRAME 元素的窗口上调用,则在承载其 FRAMESET 的窗口中打开 url。_top: If called against a window belonging to a FRAME element, opens url in the window hosting its FRAMESET. 否则,与 _self 的作用相同。Otherwise, acts the same as _self.

windowOptions

一个逗号分隔的字符串,由以下零个或多个以 name=value 形式表现的选项组成。A comma-delimited string consisting of zero or more of the following options in the form name=value. 除了采用随机整数的 left、top、height 和 width 选项,每个选项接受 yes 或 1 以及 no 或 0 作为有效值。Except for the left, top, height, and width options, which take arbitrary inte

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值