Delen via


TextRange.Kind Property

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Gets a value that indicates the text range kind.

Namespace:  Microsoft.Windows.Design.SourceUpdate
Assembly:  Microsoft.Windows.Design.Markup (in Microsoft.Windows.Design.Markup.dll)

Syntax

'Declaration
Public ReadOnly Property Kind As Integer
'Usage
Dim instance As TextRange 
Dim value As Integer 

value = instance.Kind
public int Kind { get; }
public:
property int Kind {
    int get ();
}
public function get Kind () : int

Property Value

Type: System.Int32
An integer that indicates the text range kind.

Remarks

This property can be used to distinguish text ranges created for different purposes. As characters are removed and added to a buffer, text ranges can refer to the same characters. For example, consider two text ranges on the string "abcde", one for "bcd" and the other for "c". If "b" and "d" are deleted, the text ranges will refer to the same character "c". Using the Kind property, you can distinguish between the text range originally created for "bcd" from the one created for "c".

.NET Framework Security

See Also

Reference

TextRange Class

TextRange Members

Microsoft.Windows.Design.SourceUpdate Namespace

Other Resources

WPF Designer Extensibility