Class Sentence
A small NC block for one or several lines.
public class Sentence : IGetSentence
- Inheritance
-
Sentence
- Implements
- Inherited Members
- Extension Methods
Constructors
Sentence(IndexedFileLine)
Creates a Sentence from a single IndexedFileLine.
public Sentence(IndexedFileLine indexedFileLine)
Parameters
indexedFileLineIndexedFileLine
Sentence(List<IndexedFileLine>)
Creates a Sentence from multiple IndexedFileLines.
[Obsolete("Use the (blockText, charSegment, filePath) constructor.")]
public Sentence(List<IndexedFileLine> indexedFileLineList)
Parameters
indexedFileLineListList<IndexedFileLine>
Sentence(string, FileLineCharIndexSegment, string)
Initializes a new instance of the Sentence class.
public Sentence(string blockText, FileLineCharIndexSegment charIndexSegment, string filePath = null)
Parameters
blockTextstringThe source text of this block.
charIndexSegmentFileLineCharIndexSegmentThe character-level segment [Begin, End).
filePathstringThe file path of the source file.
Properties
BlockText
The source text of this block. May contain line breaks for multi-line blocks.
public string BlockText { get; }
Property Value
CharIndexSegment
Character-level segment within the source file(s). [Begin, End).
public FileLineCharIndexSegment CharIndexSegment { get; set; }
Property Value
FilePath
File path of the source file.
public string FilePath { get; set; }
Property Value
FirstIndexedFileLine
Derives a IndexedFileLine from CharIndexSegment, FilePath, and BlockText.
public IndexedFileLine FirstIndexedFileLine { get; }
Property Value
Methods
GetSentence()
public Sentence GetSentence()