Class PlainText.PlainTextDocument
Contains a PlainText document content.
Inheritance
System.Object
PlainText.PlainTextDocument
Namespace: AutoCheck.Core.Connectors
Assembly: AutoCheck.Core.dll
Syntax
public class PlainTextDocument : object
Constructors
| Improve this Doc View SourcePlainTextDocument(String)
Creates a new PlaintText Document instance, parsing an existing PlainText file.
Declaration
public PlainTextDocument(string file)
Parameters
Type | Name | Description |
---|---|---|
System.String | file | PlainText file path. |
PlainTextDocument(String[])
Creates a new PlaintText Document instance, parsing the given lines.
Declaration
public PlainTextDocument(string[] lines)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | lines | The file content. |
Properties
| Improve this Doc View SourceContent
Document's content
Declaration
public string Content { get; }
Property Value
Type | Description |
---|---|
System.String |
Lines
Document's amount of lines
Declaration
public int Lines { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceGetLine(Int32)
Returns a line
Declaration
public string GetLine(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of the line that must be retrieved (from 1 to N). |
Returns
Type | Description |
---|---|
System.String |
Extension Methods
ObjectExtensions.DeepClone<T>(T)