LayoutFarm.Demo.HtmlPanel.HtmlPanel C# (CSharp) Method

HtmlPanel() public method

Creates a new HtmlPanel and sets a basic css for it's styling.
public HtmlPanel ( PixelFarm p, int w, int h ) : System
p PixelFarm
w int
h int
return System
        public HtmlPanel(PixelFarm.Drawing.GraphicsPlatform p, int w, int h)
        {
            AutoScroll = true;
            BackColor = SystemColors.Window;
            SetStyle(ControlStyles.ResizeRedraw, true);
            SetStyle(ControlStyles.SupportsTransparentBackColor, true);
            this.gfxPlatform = p;
            
            this.renderCanvas = gfxPlatform.CreateCanvas(0, 0,
                this.canvasW = w, this.canvasH = h);
        }
        public HtmlHost HtmlHost