Table of Contents

Class Sentence

Namespace
Hi.NcParsers
Assembly
HiMech.dll

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

indexedFileLine IndexedFileLine

Sentence(List<IndexedFileLine>)

Creates a Sentence from multiple IndexedFileLines.

[Obsolete("Use the (blockText, charSegment, filePath) constructor.")]
public Sentence(List<IndexedFileLine> indexedFileLineList)

Parameters

indexedFileLineList List<IndexedFileLine>

Sentence(string, FileLineCharIndexSegment, string)

Initializes a new instance of the Sentence class.

public Sentence(string blockText, FileLineCharIndexSegment charIndexSegment, string filePath = null)

Parameters

blockText string

The source text of this block.

charIndexSegment FileLineCharIndexSegment

The character-level segment [Begin, End).

filePath string

The 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

string

CharIndexSegment

Character-level segment within the source file(s). [Begin, End).

public FileLineCharIndexSegment CharIndexSegment { get; set; }

Property Value

FileLineCharIndexSegment

FilePath

File path of the source file.

public string FilePath { get; set; }

Property Value

string

FirstIndexedFileLine

public IndexedFileLine FirstIndexedFileLine { get; }

Property Value

IndexedFileLine

Methods

GetSentence()

public Sentence GetSentence()

Returns

Sentence