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
'宣告
ReadOnly Property IdentityTag As Object
Object IdentityTag { get; }
property Object^ IdentityTag {
Object^ get ();
}
abstract IdentityTag : Object
function get IdentityTag () : Object
Property Value
Type: System.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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.