Class DocumentLocation
Document location data class, used to determine a point within a document. This is used for gathering and setting model information.
Implements
Inherited Members
Namespace: CodeFactory.Document
Assembly: CodeFactory.dll
Syntax
public class DocumentLocation : IDocumentLocation
Constructors
| Improve this Doc View SourceDocumentLocation(int, int)
Initializes a new instance of a DocumentLocation data class.
Declaration
protected DocumentLocation(int lineNumber, int characterPosition)
Parameters
Type | Name | Description |
---|---|---|
int | lineNumber | The line number within the file. |
int | characterPosition | The character position within the line. |
Properties
| Improve this Doc View SourceCharacterPosition
Declaration
public int CharacterPosition { get; }
Property Value
Type | Description |
---|---|
int |
LineNumber
Declaration
public int LineNumber { get; }
Property Value
Type | Description |
---|---|
int |
Methods
| Improve this Doc View SourceInit(int, int)
Returns an Immutable instance of data class that implements IDocumentLocation contract definition.
Declaration
public static DocumentLocation Init(int lineNumber, int characterPosition)
Parameters
Type | Name | Description |
---|---|---|
int | lineNumber | The line number within the file. |
int | characterPosition | The character position within the line. |
Returns
Type | Description |
---|---|
DocumentLocation | Immutable instance of the document location. |