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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈