TextSize Property

 

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: You must call the GetExtPropertiesEx method before checking the value of this property. This property requires the Enterprise Edition of BrowserHawk.

 

Tip: See the extproperties.asp example located in your BrowserHawk directory for detailed information and examples on using this property.

 

Example:

<% set bhObj = Server.CreateObject("cyScape.browserObj")

bhObj.SetExtProperties "TextSize"

bhObj.GetExtPropertiesEx

%>

<html>Text size is:

<%

if bhObj.Browser = "IE" and bhObj.Majorver >=5 and LCase(left(bhObj.Platform,3)) = "win" then

PropVal = bhObj.TextSize

If PropVal = 5 then

PropVal = "Smallest"

elseif PropVal = 6 then

PropVal = "Smallest"

elseif PropVal = 7 then

PropVal = "Medium"

elseif PropVal = 8 then

PropVal = "Larger"

elseif PropVal = 9 then

PropVal = "Largest"

end if

else

PropVal = "Not available with your browser/platform"

end if

response.write PropVal %>

</html>

 

Special notes for this property:

 

See Also:

FontColor Property

FontSize Property

FontSmoothing Property

ColorDepth Property

GetExtPropertiesEx Method

SetExtProperties Method