Partager via


ITextViewLine.IdentityTag Property

Gets a tag that can be used to track the identity of an ITextViewLine across layouts in the view.

Namespace:  Microsoft.VisualStudio.Text.Formatting
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Declaration
ReadOnly Property IdentityTag As Object
Object IdentityTag { get; }
property Object^ IdentityTag {
    Object^ get ();
}
abstract IdentityTag : Object with get
function get IdentityTag () : Object

Property Value

Type: Object
A tag that can be used to track the identity of an ITextViewLine across layouts in the view.

Remarks

If an ITextViewLine has the same identity tag as the ITextViewLine from an earlier layout, then both text view lines correspond to the same text, even when the text has been moved without being modified, or when the text view lines appear at different locations in the view.

This property can be called even when the ITextViewLine is invalid.

.NET Framework Security

See Also

Reference

ITextViewLine Interface

Microsoft.VisualStudio.Text.Formatting Namespace