Represents a string with a segment.
Similar to System.ArraySegment<T>, but for strings instead of arrays.

C# | Visual Basic | Visual C++ |
public struct StringSegment : IEquatable<StringSegment>
Public Structure StringSegment _ Implements IEquatable(Of StringSegment)
public value class StringSegment : IEquatable<StringSegment>

All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
![]() | StringSegment(String, Int32, Int32) |
Creates a new StringSegment.
|
![]() | StringSegment(String) |
Creates a new StringSegment.
|
![]() | Count |
Gets the length of the segment.
|
![]() ![]() | Equality(StringSegment, StringSegment) |
Equality operator.
|
![]() | Equals(Object) | Indicates whether this instance and a specified object are equal. (Overrides ValueType.Equals(Object).) |
![]() | Equals(StringSegment) | Indicates whether the current object is equal to another object of the same type. |
![]() | GetHashCode()()()() | Returns the hash code for this instance. (Overrides ValueType.GetHashCode()()()().) |
![]() | GetType()()()() | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | Inequality(StringSegment, StringSegment) |
Inequality operator.
|
![]() | Offset |
Gets the start offset of the segment with the text.
|
![]() | Text |
Gets the string used for this segment.
|
![]() | ToString()()()() | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |
Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238