JavaScript Reference/Javascript Collections

Материал из .Net Framework эксперт

Перейти к: навигация, поиск

Содержание

"fonts" Example

 
<html>
<body>
<object id="myHelper" 
        classid="clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b" 
        width="0px" 
        height="0px">
</object>
<button onclick="alert(myHelper.fonts.Count);">Number of fonts in the system</button>
</body>
</html>



"fonts" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |Dialog Helper                                                 |
+----------------+--------------------------------------------------------------+



"fonts" JavaScript properties and JavaScript methods

JavaScript properties and JavaScript methods
 
Count, item()



"fonts" Syntax Parameters and Note

Note:
Returns an array of system-supported fonts in the Dialog Helper object.
The fonts collection has the Count property instead of the length property. 
Its syntax is document.all.dialogHelperID.fonts.Count = integer.
 
 
 
Syntax:
 
dialogHelperName.fonts // returns all fonts
dialogHelperName.fonts(param1) // returns an individual font
 
    param1   Required; the zero-based index