Share via


HtmlControl.TagInstance Property

Gets the index of the control in the collection of controls on the page that has the same tag name.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting.HtmlControls
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
Public Overridable ReadOnly Property TagInstance As Integer
public virtual int TagInstance { get; }
public:
virtual property int TagInstance {
    int get ();
}
abstract TagInstance : int with get 
override TagInstance : int with get
function get TagInstance () : int

Property Value

Type: Int32
The index of the control in the collection of controls on the page that has the same tag name.

.NET Framework Security

See Also

Reference

HtmlControl Class

Microsoft.VisualStudio.TestTools.UITesting.HtmlControls Namespace