TextSpan<T> Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a generic class that allows a simple pairing of an object of type T and a specified run length.
generic <typename T>
public ref class TextSpan
public class TextSpan<T>
type TextSpan<'T> = class
Public Class TextSpan(Of T)
- T
The object type to pair.
- Inheritance
-
TextSpan<T>
Text |
Initializes a new instance of the TextSpan<T> class by specifying the length of the text span and the value associated with it. |
Length |
Gets the number of characters in the text span. |
Value |
Gets the object associated with the text span. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
To |
Returns a string that represents the current object. (Inherited from Object) |
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: