本文整理汇总了C#中WebClient.getBrowserVersion方法的典型用法代码示例。如果您正苦于以下问题:C# WebClient.getBrowserVersion方法的具体用法?C# WebClient.getBrowserVersion怎么用?C# WebClient.getBrowserVersion使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WebClient
的用法示例。
在下文中一共展示了WebClient.getBrowserVersion方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: WebWindowImpl
/// <summary>
/// Creates a window and associates it with the client.
/// </summary>
/// <param name="webClient">the web client that "owns" this window</param>
public WebWindowImpl(WebClient webClient)
{
WebAssert.notNull("webClient", webClient);
webClient_ = webClient;
jobManager_ = BackgroundJavaScriptFactory.theFactory().createJavaScriptJobManager(this);
bool plus16 = false;
innerHeight_ = 605;
if (webClient.getBrowserVersion().hasFeature(JS_WINDOW_OUTER_INNER_HEIGHT_DIFF_63))
{
outerHeight_ = innerHeight_ + 63;
plus16 = true;
}
else if (webClient.getBrowserVersion().hasFeature(JS_WINDOW_OUTER_INNER_HEIGHT_DIFF_94))
{
outerHeight_ = innerHeight_ + 94;
}
else if (webClient.getBrowserVersion().hasFeature(JS_WINDOW_OUTER_INNER_HEIGHT_DIFF_89))
{
outerHeight_ = innerHeight_ + 89;
plus16 = true;
}
else
{
outerHeight_ = innerHeight_ + 115;
}
innerWidth_ = 1256;
if (plus16)
{
outerWidth_ = innerWidth_ + 16;
}
else
{
outerWidth_ = innerWidth_ + 14;
}
}