Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

When using a WebBrowser as an editor how do I get the current font name?

2 views
Skip to first unread message

Joe Mitchel

unread,
Dec 18, 2009, 5:04:17 PM12/18/09
to
Hi everyone,

I'm using a WebBrowser that has had "contenteditable" applied to the
body so I can use it as an editor. Does anyone know how I can get the
font name of the current font so that I can preset my font combo box?

Thanks

RayLopez99

unread,
Dec 20, 2009, 9:07:19 AM12/20/09
to

Probably just check the .get property of the font object. For example:
http://msdn.microsoft.com/en-us/library/system.windows.controls.control.fontfamilyproperty.aspx

RL

0 new messages