Width Property (.NET)

 

Type: Integer

 

Returns the width of the visitor’s screen size resolution. For example, a visitor with their screen resolution set to 1024x768 would return 1024.

 

Note: Use of this property requires the Professional or Enterprise Edition of BrowserHawk.

 

Special notes for this property:

 

C# Example:

<%

ExtendedOptions options = new ExtendedOptions();

options.AddProperties("Height, Width"); // as a shortcut you can use "screensize" instead of "Height, Width"

ExtendedBrowserObj extBrow = BrowserObj.GetExtendedBrowser(options);

%>

<html>

Screen size: <% Response.Write(extBrow.Width + " wide X " + extBrow.Height + " high"); %>

</html>

 

See Also:

WidthAvail Property (.NET)

Height Property (.NET)

HeightAvail Property (.NET)