[]
Represents a page in a GcHtmlBrowser instance.
public class HtmlPage : IDisposable
Public Class HtmlPage
Implements IDisposable
Name | Description |
---|---|
Browser | Gets the owner GcHtmlBrowser. |
TimeoutOptions | Gets the timeout settings for various browser operations. |
Name | Description |
---|---|
Dispose() | Clean up any resources being used. |
EvaluateExpression<T>(string) | Executes a script in the browser context. |
GetContent() | Gets the full HTML content of the page, including the doctype. |
GetContentSize() | Gets the size of page scrollable area, in pixels. |
GetTitle() | Gets the page title. |
GetWindowSize() | Gets the virtual window size, in pixels. |
Reload(PageLoadStates) | Reloads the page. |
Render(GcBitmap, PngOptions) | Renders the current page to an existing GcBitmap. |
RenderAndCrop(GcBitmap, PngOptions, Color?, int, int, int, int) | Renders the current page to an existing GcBitmap and crops. |
ResetDefaultBackgroundColor() | Clears an override of the default background color. |
SaveAsJpeg(Stream, JpegOptions) | Saves the current page to a stream in JPEG format. |
SaveAsJpeg(string, JpegOptions) | Saves the current web page as a JPEG image file. |
SaveAsPdf(Stream, PdfOptions) | Saves the current page to a stream in PDF format. |
SaveAsPdf(string, PdfOptions) | Creates a PDF file from the current page. |
SaveAsPng(Stream, PngOptions) | Saves the current page to a stream in PNG format. |
SaveAsPng(string, PngOptions) | Saves the current page as a PNG image file. |
SaveAsWebp(Stream, WebpOptions) | Saves the current page to a stream in WEBP format. |
SaveAsWebp(string, WebpOptions) | Saves the current page as a WEBP image file. |
SetContent(string, PageLoadStates) | Sets the HTML markup to the page. |
SetDefaultBackgroundColor(Color) | Sets the background color to be used if the HTML markup doesn't specify one. |
SetWindowSize(Size) | Sets the virtual window size, in pixels. |
ToJpegBytes(JpegOptions) | Renders the current page to an image in JPEG format and returns it as a byte array. |
ToPdfBytes(PdfOptions) | Renders the current page to a PDF document and returns it as a byte array. |
ToPngBytes(PngOptions) | Renders the current page to an image in PNG format and returns it as a byte array. |
ToWebpBytes(WebpOptions) | Renders the current page to an image in WEBP format and returns it as a byte array. |
WaitForNetworkIdle(int, int) | Waits for network idle during the specified amount of time. |