Class DocumentLine
Data class that holds the document line information.
Implements
Inherited Members
Namespace: CodeFactory.Document
Assembly: CodeFactory.dll
Syntax
public class DocumentLine : IDocumentLine
Constructors
| Improve this Doc View SourceDocumentLine(long, int, string)
Constructor that creates an instance of the DocumentLine
Declaration
protected DocumentLine(long number, int length, string content)
Parameters
Type | Name | Description |
---|---|---|
long | number | The line number within the document. |
int | length | The number of characters that are in the line. |
string | content | The content of the line. |
Properties
| Improve this Doc View SourceContent
The content of the line.
Declaration
public string Content { get; }
Property Value
Type | Description |
---|---|
string |
Length
The number of characters that are in the line.
Declaration
public int Length { get; }
Property Value
Type | Description |
---|---|
int |
Number
The line number within the document.
Declaration
public long Number { get; }
Property Value
Type | Description |
---|---|
long |
Methods
| Improve this Doc View SourceInit(long, int, string)
Creates an immutable instance of the DocumentLine
Declaration
public static DocumentLine Init(long number, int length, string content)
Parameters
Type | Name | Description |
---|---|---|
long | number | The line number within the document. |
int | length | The number of characters that are in the line. |
string | content | The content of the line. |
Returns
Type | Description |
---|---|
DocumentLine |