StringDifferenceOptions 结构

使用的选项在计算字符串差异。

命名空间:  Microsoft.VisualStudio.Text.Differencing
程序集:  Microsoft.VisualStudio.Text.Data(在 Microsoft.VisualStudio.Text.Data.dll 中)

语法

声明
Public Structure StringDifferenceOptions
public struct StringDifferenceOptions
public value class StringDifferenceOptions
[<Sealed>]
type StringDifferenceOptions =  struct end
JScript 支持使用结构,但是不支持新结构的声明。

StringDifferenceOptions 类型公开以下成员。

构造函数

  名称 说明
公共方法 StringDifferenceOptions(StringDifferenceOptions) 使用指定选项初始化 StringDifferenceOptions 的新实例。
公共方法 StringDifferenceOptions(StringDifferenceTypes, Int32, Boolean) 使用指定选项初始化 StringDifferenceOptions 的新实例。

页首

属性

  名称 说明
公共属性 ContinueProcessingPredicate 允许客户端取消区分选项谓词,则完全完成之前。
公共属性 DetermineLocalityCallback 已废弃不用。 用于重写特定轮区分的局部性的可选回调。
公共属性 DifferenceType 要以行、词和字符区分的组合形式执行的字符串区分的类型。
公共属性 IgnoreTrimWhiteSpace 获取或设置是否忽略空白。
公共属性 Locality 已废弃不用。 区分元素(行、范围或字符)被视为同一源的组成部分所能移动的最大距离。
公共属性 WordSplitBehavior 如果 DifferenceType 请求进行词区分,要在拆分词时使用的行为。

页首

方法

  名称 说明
公共方法 Equals 确定两个 StringDifferenceOptions 是否相同。 (重写 ValueType.Equals(Object)。)
公共方法 GetHashCode 为类型提供哈希函数。 (重写 ValueType.GetHashCode。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 ToString 提供这些差异选项的字符串表示形式。 (重写 ValueType.ToString。)

页首

运算符

  名称 说明
公共运算符静态成员 Equality 确定两个 StringDifferenceOptions 是否相同
公共运算符静态成员 Inequality 确定两个 StringDifferenceOptions 是否不同。

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.VisualStudio.Text.Differencing 命名空间