在已命名的窗口中显示文件。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