Partager via


HtmlTagWithOffsets Class

Extends the basic HtmlTag by tracking the beginning and ending tag offsets within the HTML document.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.TestTools.WebTesting.HtmlTag
    Microsoft.VisualStudio.TestTools.WebTesting.HtmlTagWithOffsets

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Syntax

'Declaration
Public Class HtmlTagWithOffsets _
    Inherits HtmlTag
public class HtmlTagWithOffsets : HtmlTag
public ref class HtmlTagWithOffsets : public HtmlTag
type HtmlTagWithOffsets =  
    class 
        inherit HtmlTag 
    end
public class HtmlTagWithOffsets extends HtmlTag

The HtmlTagWithOffsets type exposes the following members.

Constructors

  Name Description
Public method HtmlTagWithOffsets Initializes a new instance of the HtmlTagWithOffsets class.

Top

Properties

  Name Description
Public property Attributes Gets a collection of attributes associated with the HTML tag. (Inherited from HtmlTag.)
Public property BeginOffset Gets or set the offset for an open bracket of HtmlTag within a HTML document.
Public property EndOffset Gets or set the offset for an HtmlTag close bracket within a HTML document.
Public property Name Gets or sets the name of the tag. (Inherited from HtmlTag.)

Top

Methods

  Name Description
Public method AddAttribute Adds an attribute to the HtmlTag collection. (Inherited from HtmlTag.)
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetAttributeValue Gets the value of a specified attribute. (Inherited from HtmlTag.)
Public method GetAttributeValueAsString Gets the value of a specified attribute in string format. (Inherited from HtmlTag.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.TestTools.WebTesting Namespace

Other Resources

Working with Web Tests