Skip to content

Commit

Permalink
Expose the zoom level to C#
Browse files Browse the repository at this point in the history
  • Loading branch information
anaisbetts committed Aug 1, 2012
1 parent 65a8b1f commit 815e4ad
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions CefSharp/CefWpfWebBrowser.h
Expand Up @@ -167,6 +167,24 @@ namespace CefSharp
double get() { return _contentHeight; }
}

property double ZoomLevel
{
double get() {
if (!this->IsInitialized) {
return 1.0;
}

return _clientAdapter.get()->GetCefBrowser()->GetZoomLevel();
}
void set(double val) {
if (!this->IsInitialized) {
return;
}

_clientAdapter.get()->GetCefBrowser()->SetZoomLevel(val);
}
}

property bool IsInitialized
{
bool get()
Expand Down

0 comments on commit 815e4ad

Please sign in to comment.