Search DaTutorials:  
HOME
DHTML Reference
Introduction
Reference

fonts Collection


Retrieves a collection of all the system-supported fonts.

Syntax

[ oColl = ] Dialog Helper.fonts
[ oObject = ] Dialog Helper.fonts(iIndex)

Possible Values

oCollA collection of system-supported fonts.
oObjectReference to an individual item in the array of elements contained by the object.
iIndexRequired. Integer that specifies the zero-based index of the item to be returned.

Members Table

PropertyDescription
Count Retrieves the number of available block format tags.
MethodDescription
Item Retrieves a string that specifies the name of a block format tag.

Example

The following example displays the total number of system fonts, and then displays a list of their names.

function testFonts()
{
var a=dlgHelper.fonts.count;

	alert(a); //show total number of system fonts
for (i = 1;i < dlgHelper.fonts.count;i++)
	{ 
		
		var f= f  + "  " + dlgHelper.fonts(i) 

	} 
	alert(f); //show names of all system fonts
RE>
This feature requires Microsoft® Internet Explorer 6.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Applies To


     Texas Flags | Bad Credit Mortgages | Agencia de turismo | Loans | Secured Loans
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp