
# ITextDocument interface

*No description yet.*

```csharp
public interface ITextDocument
```

**Namespace:** DXP · **Assembly:** Altium.SDK.Interfaces

## Properties

| Property | Type | Access | Description |
| --- | --- | --- | --- |
| [ModifiedSinceAction](#modifiedsinceaction) | `bool` | get; set |  |

### ModifiedSinceAction

*No description yet.*

```csharp
bool GetModifiedSinceAction();
void SetModifiedSinceAction(bool argValue);
```

**Type:** `bool` · **Access:** read/write

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [BeginUpdate](#beginupdate) | `void` |  |
| [ClearGraph](#cleargraph) | `void` |  |
| [ClearMask](#clearmask) | `void` |  |
| [ClearSelection](#clearselection) | `void` |  |
| [CurrentLineNumber](#currentlinenumber) | `int` |  |
| [EndUpdate](#endupdate) | `void` |  |
| [GetCursorPosition](#getcursorposition) | `void` |  |
| [GetLine](#getline) | `void` |  |
| [GetLineVisibility](#getlinevisibility) | `bool` |  |
| [GetSelectedText](#getselectedtext) | `string` |  |
| [GetTextAtCursor](#gettextatcursor) | `string` |  |
| [GetTextAtCursorEx](#gettextatcursorex) | `string` |  |
| [GetWideText](#getwidetext) | `string` |  |
| [HighlightFoundRect](#highlightfoundrect) | `void` |  |
| [ImportEditorSettingsFromTasking](#importeditorsettingsfromtasking) | `void` |  |
| [ImportEditorSettingsFromVisualStudio](#importeditorsettingsfromvisualstudio) | `void` |  |
| [IsReadOnly](#isreadonly) | `bool` |  |
| [IsSelectedTextPresent](#isselectedtextpresent) | `bool` |  |
| [JumpTo](#jumpto) | `void` |  |
| [JumpToOffset](#jumptooffset) | `void` |  |
| [LineCount](#linecount) | `int` |  |
| [MarkLine](#markline) | `void` |  |
| [MarkWordRight](#markwordright) | `void` |  |
| [MaskBlock](#maskblock) | `void` |  |
| [ReceivePreferencesChanged](#receivepreferenceschanged) | `void` |  |
| [ReplaceText](#replacetext) | `void` |  |
| [SaveToFile](#savetofile) | `void` |  |
| [SelectBlock](#selectblock) | `void` |  |
| [SendPreferencesChanged](#sendpreferenceschanged) | `void` |  |
| [SetFocus](#setfocus) | `void` |  |
| [SetLine](#setline) | `void` |  |
| [TempHighlightLine](#temphighlightline) | `void` |  |
| [UpdateSyntax](#updatesyntax) | `void` |  |

### BeginUpdate

*No description yet.*

```csharp
void BeginUpdate();
```

**Returns:** nothing (`void`)

### ClearGraph

*No description yet.*

```csharp
void ClearGraph();
```

**Returns:** nothing (`void`)

### ClearMask

*No description yet.*

```csharp
void ClearMask();
```

**Returns:** nothing (`void`)

### ClearSelection

*No description yet.*

```csharp
void ClearSelection();
```

**Returns:** nothing (`void`)

### CurrentLineNumber

*No description yet.*

```csharp
int CurrentLineNumber();
```

**Returns:** `int`

### EndUpdate

*No description yet.*

```csharp
void EndUpdate();
```

**Returns:** nothing (`void`)

### GetCursorPosition

*No description yet.*

```csharp
void GetCursorPosition(out int argPosX, out int argPosY);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argPosX` | `int` | out |
| `argPosY` | `int` | out |

**Returns:** nothing (`void`)

### GetLine

*No description yet.*

```csharp
void GetLine(int argIndex, ref string argValue);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argIndex` | `int` | value |
| `argValue` | `string` | ref |

**Returns:** nothing (`void`)

### GetLineVisibility

*No description yet.*

```csharp
bool GetLineVisibility(int argIndex);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argIndex` | `int` | value |

**Returns:** `bool`

### GetSelectedText

*No description yet.*

```csharp
string GetSelectedText();
```

**Returns:** `string`

### GetTextAtCursor

*No description yet.*

```csharp
string GetTextAtCursor();
```

**Returns:** `string`

### GetTextAtCursorEx

*No description yet.*

```csharp
string GetTextAtCursorEx(TSysCharSet argExcludeDelimiters);
string GetTextAtCursorEx(ITransportSet argExcludeDelimiters);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argExcludeDelimiters` | [TSysCharSet](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/TSysCharSet.md) | value |

**Returns:** `string`

The first overload is an extension method of `ITextDocumentHelper` (`using DXP;`) with typed parameters; the second is declared by the interface.

### GetWideText

*No description yet.*

```csharp
string GetWideText();
```

**Returns:** `string`

### HighlightFoundRect

*No description yet.*

```csharp
void HighlightFoundRect(int argX1, int argY1, int argX2, int argY2);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argX1` | `int` | value |
| `argY1` | `int` | value |
| `argX2` | `int` | value |
| `argY2` | `int` | value |

**Returns:** nothing (`void`)

### ImportEditorSettingsFromTasking

*No description yet.*

```csharp
void ImportEditorSettingsFromTasking(bool argSendNotification);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argSendNotification` | `bool` | value |

**Returns:** nothing (`void`)

### ImportEditorSettingsFromVisualStudio

*No description yet.*

```csharp
void ImportEditorSettingsFromVisualStudio(bool argSendNotification);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argSendNotification` | `bool` | value |

**Returns:** nothing (`void`)

### IsReadOnly

*No description yet.*

```csharp
bool IsReadOnly();
```

**Returns:** `bool`

### IsSelectedTextPresent

*No description yet.*

```csharp
bool IsSelectedTextPresent();
```

**Returns:** `bool`

### JumpTo

*No description yet.*

```csharp
void JumpTo(int argX, int argY, bool argCentered);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argX` | `int` | value |
| `argY` | `int` | value |
| `argCentered` | `bool` | value |

**Returns:** nothing (`void`)

### JumpToOffset

*No description yet.*

```csharp
void JumpToOffset(int argOffset);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argOffset` | `int` | value |

**Returns:** nothing (`void`)

### LineCount

*No description yet.*

```csharp
int LineCount();
```

**Returns:** `int`

### MarkLine

*No description yet.*

```csharp
void MarkLine();
```

**Returns:** nothing (`void`)

### MarkWordRight

*No description yet.*

```csharp
void MarkWordRight();
```

**Returns:** nothing (`void`)

### MaskBlock

*No description yet.*

```csharp
void MaskBlock(int argColumn, int argLine, int argLength, int argHeight);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argColumn` | `int` | value |
| `argLine` | `int` | value |
| `argLength` | `int` | value |
| `argHeight` | `int` | value |

**Returns:** nothing (`void`)

### ReceivePreferencesChanged

*No description yet.*

```csharp
void ReceivePreferencesChanged();
```

**Returns:** nothing (`void`)

### ReplaceText

*No description yet.*

```csharp
void ReplaceText(int argX, int argY, int argLen, string argNewText);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argX` | `int` | value |
| `argY` | `int` | value |
| `argLen` | `int` | value |
| `argNewText` | `string` | value |

**Returns:** nothing (`void`)

### SaveToFile

*No description yet.*

```csharp
void SaveToFile(string argFileName);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argFileName` | `string` | value |

**Returns:** nothing (`void`)

### SelectBlock

*No description yet.*

```csharp
void SelectBlock(int argColumn, int argLine, int argLength, int argHeight);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argColumn` | `int` | value |
| `argLine` | `int` | value |
| `argLength` | `int` | value |
| `argHeight` | `int` | value |

**Returns:** nothing (`void`)

### SendPreferencesChanged

*No description yet.*

```csharp
void SendPreferencesChanged();
```

**Returns:** nothing (`void`)

### SetFocus

*No description yet.*

```csharp
void SetFocus();
```

**Returns:** nothing (`void`)

### SetLine

*No description yet.*

```csharp
void SetLine(int argIndex, string argValue);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argIndex` | `int` | value |
| `argValue` | `string` | value |

**Returns:** nothing (`void`)

### TempHighlightLine

*No description yet.*

```csharp
void TempHighlightLine(int argIndex, string argStyleName);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argIndex` | `int` | value |
| `argStyleName` | `string` | value |

**Returns:** nothing (`void`)

### UpdateSyntax

*No description yet.*

```csharp
void UpdateSyntax();
```

**Returns:** nothing (`void`)
