使用指定的值初始化 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
类型:System.String
文档的内容。
- beginOffset
类型:System.Int32
内部文本在文档中的开始偏移量。
- endOffset
类型:System.Int32
内部文本在文档中的结束偏移量。
- removeInnerTags
类型:System.Boolean
如果要移除内部 HTML 标记,则为 true;否则为 false。
- collapseWhiteSpace
类型:System.Boolean
如果要折叠内部文本内的空格,则为 true;否则为 false。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。