SetViewportName Method (BrowserWindow)

Action

Set the size of the browser window to the specified size from your Browser Size list.

Syntax

C#
browserWindow.SetViewportName(viewportName, [orientation])
VB
browserWindow.SetViewportName(viewportName, [orientation])
Variable Description
viewportName The name of the browser size in your Browser Size list. String.
orientation Optional: The orientation of the browser window. DisplayOrientation.