HtmlWindowCollection.Item Property (Int32)

 

Retrieves a frame window by supplying the frame's position in the collection.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public HtmlWindow this[
	int index
] { get; }

Parameters

index
Type: System.Int32

The position of the HtmlWindow within the collection.

Property Value

Type: System.Windows.Forms.HtmlWindow

The HtmlWindow corresponding to the requested frame.

Exception Condition
ArgumentOutOfRangeException

index is greater than the number of items in the collection.

HtmlWindowCollection is a zero-based collection. If there are N elements in the collection, valid arguments to Item are the integers from 0 to N-1.

Windows are not laid out in HtmlWindowCollection in any predetermined order.

.NET Framework
Available since 2.0
Return to top
Show: