Click or drag to resize

IWindowInfo Interface

Version 89.0.170
Class representing window information.

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: 89.0.170.0 (89.0.170.0)
Syntax
public interface IWindowInfo : IDisposable

The IWindowInfo type exposes the following members.

Properties
  NameDescription
Public propertyExStyle
Ex window style
Public propertyExternalBeginFrameEnabled
Set to true to enable the ability to issue BeginFrame requests from the client application by calling SendExternalBeginFrame.
Public propertyHeight
Height
Public propertyParentWindowHandle
Parent window handle
Public propertySharedTextureEnabled
Set to true to enable shared textures for windowless rendering. Only valid if WindowlessRenderingEnabled is also set to true. Currently only supported on Windows (D3D11). This feature is experimental and has many bugs at the moment.
Public propertyStyle
Window style
Public propertyWidth
Width
Public propertyWindowHandle
Handle for the new browser window. Only used with windowed rendering.
Public propertyWindowlessRenderingEnabled
Set to true to create the browser using windowless (off-screen) rendering. No window will be created for the browser and all rendering will occur via the IRenderHandler interface. The ParentWindowHandle value will be used to identify monitor info and to act as the parent window for dialogs, context menus, etc. If |ParentWindowHandle is not provided then the main screen monitor will be used and some functionality that requires a parent window may not function correctly. In order to create windowless browsers the CefSettings.WindowlessRenderingEnabled value must be set to true. Transparent painting is enabled by default but can be disabled by setting BackgroundColor to an opaque value.
Public propertyX
X coordinate
Public propertyY
Y coordinate
Top
Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodSetAsChild(IntPtr)
Create the browser as a child window. Calls GetClientRect(Hwnd) to obtain the window bounds
Public methodSetAsChild(IntPtr, Int32, Int32, Int32, Int32)
Create the browser as a child window.
Public methodSetAsPopup
Create the browser as a popup window.
Public methodSetAsWindowless
Create the browser using windowless (off-screen) rendering. No window will be created for the browser and all rendering will occur via the CefRenderHandler interface. This window will automatically be transparent unless a colored backgrond is set in the browser settings.
Public methodUnWrap
Used internally to get the underlying IWindowInfo instance. Unlikely you'll use this yourself.
Top
See Also