###User Defined Function###
_IELinkGetCollection

###Description###
Returns a collection object containing all links in the document or a single link by index.

###Syntax###
#include <IE.au3>
_IELinkGetCollection ( ByRef $o_object [, $i_index = -1] )


###Parameters###
@@ParamTable@@
$o_object
	Object variable of an InternetExplorer.Application, Window or Frame object
$i_index
	[optional] specifies whether to return a collection or indexed instance
		 0 or positive integer returns an indexed instance
		-1 = (Default) returns a collection
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	an object collection of all links in the document, @extended = link count?
Failure:	sets the @error flag to non-zero.
@error:	3 ($_IEStatus_InvalidDataType) - Invalid Data Type
	5 ($_IEStatus_InvalidValue) - Invalid Value
	7 ($_IEStatus_NoMatch) - No Match
@extended:	Contains invalid parameter number
@@End@@


###Remarks###
Not all elements that appear to be links actually are.
It is common practice to attach onClick JavaScript events to other DOM elements to simulate the behavior of links.
To activate such elements, use "click" with <a href="_IEAction.htm">_IEAction()</a>.


###Related###
None.


###Example###
@@IncludeExample@@
