TextSize Property (.NET)

 

Type: Integer

 

Returns an integer representing the text size selection the user has made from the View->Text Size menu of IE 5 or later on Windows. The possible values for this integer and the menu selection they represent are listed below:

 -1: Not detectable with this browser

 5: Smallest

 6: Smaller

 7: Medium

 8: Larger

 9: Largest

 

Note: Use of this property requires the Enterprise Edition of BrowserHawk.

 

Special notes for this property:

 

C# Example:

<%

ExtendedOptions options = new ExtendedOptions();

options.AddProperties("TextSize");

ExtendedBrowserObj extBrow = BrowserObj.GetExtendedBrowser(options);

%>

<html>

TextSize (raw value): <% Response.Write(extBrow.TextSize); %> <p>

TextSize (translated): <% Response.Write(extBrow.Translate("TextSize")); %>

</html>

 

See Also:

FontColor Property (.NET)

FontSize Property (.NET)

FontSmoothing Property (.NET)

ColorDepth Property (.NET)

FontsInstalled Property (.NET)