共用方式為


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
)

參數

  • documentContent
    類型:String

    文件內容。

  • beginOffset
    類型:Int32

    內部文字在文件中的起始位移。

  • endOffset
    類型:Int32

    內部文字在文件中的結束位移。

  • removeInnerTags
    類型:Boolean

    true 以移除內部 HTML 標記,否則為 false。

  • collapseWhiteSpace
    類型:Boolean

    true 表示摺疊內部文字中的空白字元,否則為 false。

.NET Framework 安全性

請參閱

參考

HtmlTagInnerText 類別

HtmlTagInnerText 多載

Microsoft.VisualStudio.TestTools.WebTesting 命名空間