TextLine Struct
Definition
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.
Information about the character boundaries of a single line of text.
public value class TextLine : IEquatable<Microsoft::CodeAnalysis::Text::TextLine>
public readonly struct TextLine : IEquatable<Microsoft.CodeAnalysis.Text.TextLine>
type TextLine = struct
Public Structure TextLine
Implements IEquatable(Of TextLine)
- Inheritance
-
TextLine
- Implements
Properties
End |
Gets the end position of the line not including the line break. |
EndIncludingLineBreak |
Gets the end position of the line including the line break. |
LineNumber |
Gets the zero-based line number. |
Span |
Gets the line span not including the line break. |
SpanIncludingLineBreak |
Gets the line span including the line break. |
Start |
Gets the start position of the line. |
Text |
Gets the source text. |
Methods
Equals(Object) | |
Equals(TextLine) | |
FromSpan(SourceText, TextSpan) |
Creates a TextLine instance. |
GetHashCode() | |
ToString() |
Operators
Equality(TextLine, TextLine) | |
Inequality(TextLine, TextLine) |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for