HtmlTagInnerTextParser.GetInnerTextForHtmlTags Method (String, String, String, Boolean, Boolean, Boolean, Int32, Int32)

Returns an enumerable list of all the inner text that matches the specified parameters.

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

Syntax

'Declaration
Public Function GetInnerTextForHtmlTags ( _
    tagName As String, _
    attributeName As String, _
    attributeValue As String, _
    hasClosingTag As Boolean, _
    removeInnerTags As Boolean, _
    collapseWhiteSpace As Boolean, _
    beginParseOffset As Integer, _
    endParseOffset As Integer _
) As IEnumerable(Of HtmlTagInnerText)
public IEnumerable<HtmlTagInnerText> GetInnerTextForHtmlTags(
    string tagName,
    string attributeName,
    string attributeValue,
    bool hasClosingTag,
    bool removeInnerTags,
    bool collapseWhiteSpace,
    int beginParseOffset,
    int endParseOffset
)
public:
IEnumerable<HtmlTagInnerText^>^ GetInnerTextForHtmlTags(
    String^ tagName, 
    String^ attributeName, 
    String^ attributeValue, 
    bool hasClosingTag, 
    bool removeInnerTags, 
    bool collapseWhiteSpace, 
    int beginParseOffset, 
    int endParseOffset
)
member GetInnerTextForHtmlTags : 
        tagName:string * 
        attributeName:string * 
        attributeValue:string * 
        hasClosingTag:bool * 
        removeInnerTags:bool * 
        collapseWhiteSpace:bool * 
        beginParseOffset:int * 
        endParseOffset:int -> IEnumerable<HtmlTagInnerText> 
public function GetInnerTextForHtmlTags(
    tagName : String, 
    attributeName : String, 
    attributeValue : String, 
    hasClosingTag : boolean, 
    removeInnerTags : boolean, 
    collapseWhiteSpace : boolean, 
    beginParseOffset : int, 
    endParseOffset : int
) : IEnumerable<HtmlTagInnerText>

Parameters

  • attributeName
    Type: System.String
    The name of the attribute to match.
  • attributeValue
    Type: System.String
    The value of the attribute to match.
  • hasClosingTag
    Type: System.Boolean
    Specifies whether this tag has a closing tag.
  • removeInnerTags
    Type: System.Boolean
    true to filter out HTML tags from the inner text; otherwise, false.
  • collapseWhiteSpace
    Type: System.Boolean
    true to collapse the extra white space in the HTML document; otherwise, false.
  • beginParseOffset
    Type: System.Int32
    The start offset for parsing the HTML document.
  • endParseOffset
    Type: System.Int32
    The end offset for parsing the HTML document.

Return Value

Type: System.Collections.Generic.IEnumerable<HtmlTagInnerText>
An enumerable list of the inner text of the matching tags.

.NET Framework Security

See Also

Reference

HtmlTagInnerTextParser Class

GetInnerTextForHtmlTags Overload

Microsoft.VisualStudio.TestTools.WebTesting Namespace