StringDifferenceOptions.Locality 屬性
注意:這個 API 現在已經過時。
差異項目 (字行、延伸或字元) 可移動而仍被視為相同來源之一部分的最大距離。
命名空間: Microsoft.VisualStudio.Text.Differencing
組件: Microsoft.VisualStudio.Text.Data (在 Microsoft.VisualStudio.Text.Data.dll 中)
語法
'宣告
<ObsoleteAttribute("This value is no longer used and will be ignored.")> _
Public Property Locality As Integer
[ObsoleteAttribute("This value is no longer used and will be ignored.")]
public int Locality { get; set; }
[ObsoleteAttribute(L"This value is no longer used and will be ignored.")]
public:
property int Locality {
int get ();
void set (int value);
}
[<ObsoleteAttribute("This value is no longer used and will be ignored.")>]
member Locality : int with get, set
function get Locality () : int
function set Locality (value : int)
屬性值
類型:Int32
最大距離 (以行數表示)。
備註
例如,如果「位置」設為 100,則某行若以 100 行或更少行與其相鄰行隔開,仍將被視為「同一行」。 如果隔開超過 100 行,則會被視為「不同行」。
這個選項用於高差異類型只。 如果使用者要求行與 word 差異,則將用這個屬性只適用於線條的差異,不適用於 word 差異。 預設值是int.MaxValue,可以表示任何距離的移動。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。