HtmlTagInnerText 构造函数 (String, Int32, Int32, Boolean, Boolean)

使用指定的值初始化 HtmlTagInnerText 类的新实例。

命名空间:  Microsoft.VisualStudio.TestTools.WebTesting
程序集:  Microsoft.VisualStudio.QualityTools.WebTestFramework(在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)

语法

声明
Public Sub New ( _
    documentContent As String, _
    beginOffset As Integer, _
    endOffset As Integer, _
    removeInnerTags As Boolean, _
    collapseWhiteSpace As Boolean _
)
public HtmlTagInnerText(
    string documentContent,
    int beginOffset,
    int endOffset,
    bool removeInnerTags,
    bool collapseWhiteSpace
)
public:
HtmlTagInnerText(
    String^ documentContent, 
    int beginOffset, 
    int endOffset, 
    bool removeInnerTags, 
    bool collapseWhiteSpace
)
new : 
        documentContent:string * 
        beginOffset:int * 
        endOffset:int * 
        removeInnerTags:bool * 
        collapseWhiteSpace:bool -> HtmlTagInnerText
public function HtmlTagInnerText(
    documentContent : String, 
    beginOffset : int, 
    endOffset : int, 
    removeInnerTags : boolean, 
    collapseWhiteSpace : boolean
)

参数

  • beginOffset
    类型:System.Int32
    内部文本在文档中的开始偏移量。
  • endOffset
    类型:System.Int32
    内部文本在文档中的结束偏移量。
  • removeInnerTags
    类型:System.Boolean
    如果要移除内部 HTML 标记,则为 true;否则为 false。
  • collapseWhiteSpace
    类型:System.Boolean
    如果要折叠内部文本内的空格,则为 true;否则为 false。

.NET Framework 安全性

请参见

参考

HtmlTagInnerText 类

HtmlTagInnerText 重载

Microsoft.VisualStudio.TestTools.WebTesting 命名空间