WebBrowserObject Class (RWE.GameOn.Core)

Class
WebBrowserObject

Usage:

Represents an embed-able web browser object.

WebBrowserObject

Properties:

  • Scrollbar
    Variable – Support horizontal, vertical or all possible scrolling options when required.
WebBrowserObject1.Scrollbar = vertical, horizontal;
WebBrowserObject1.Scrollbar = none;
  • src.ToString
    String – Sets the URL for the WebBrowserObject
WebBrowserObject1.src.ToString = "https://url-here";
  • Dock
    Variable – Docks the UI Element to the parent container.
WebBrowserObject1.Dock = fill;
  • Height
    Variable – Sets the height of the Web Browser object.
WebBrowserObject1.Height = 300px;
  • Width
    Variable – Sets the width of the Web Browser object.
WebBrowserObject1.Width = 300px;
  • Anchor
    Variable – Anchors the UI Element to the parent container.
WebBrowserObject1.Anchor = top, right;
  • BackgroundCapable
    Boolean – Defines the permission to make the object capable of working in the background.
WebBrowserObject1.BackgroundCapable = true;
  • Property.UserAgent.ToString
    String – Allows for a custom user agent.
WebBrowserObject1.Property.UserAgent.ToString = "My User Agent";
  • Property.AllowsInsecureBrowsing
    Boolean – Defines whether the browser can access not HTTPS sites.
WebBrowserObject1.Property.AllowsInsecureBrowsing = true;

Example:

new WebBrowserObject = WebBrowser1();
         WebBrowser1.src.ToString = "https://www.ryanwalpole.com";
         WebBrowser1.AllowsInsecureBrowsing = true;
         WebBrowser1.Dock = fill;
Menu