Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
HTML and CSS
Collections
 blockFormats Collection

  Switch on low bandwidth view
blockFormats Collection

Retrieves a collection of strings that specify the names of the available block format tags.

Syntax

[ oColl = ] HtmlDlgSafeHelper.blockFormats
[ oObject = ] HtmlDlgSafeHelper.blockFormats(iIndex)

Possible Values

oColl A collection of the names of the available block format tags.
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

The following table lists the members exposed by the blockFormats object.

Attributes/Properties
Show:
PropertyDescription
Count Retrieves the number of available block format tags.
MethodDescription
Item Retrieves a string that specifies the name of a block format tag.

Remarks

blockFormats was introduced in Microsoft Internet Explorer 6

Example

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


function testblockFormats()
{
var a=dlgHelper.blockFormats.count
	alert(a); //show total number of block formats
for (i = 1;i < dlgHelper.blockFormats.count;i++)
	{ 
		
		var f= f  + "  " + dlgHelper.blockFormats(i) 
	} 
	alert(f) //show names of all block formats
 }
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

HtmlDlgSafeHelper
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker