Skip to main content
View as Markdown

ITextDocument interface

No description yet.

public interface ITextDocument

Namespace: DXP · Assembly: Altium.SDK.Interfaces

Properties​

PropertyTypeAccessDescription
ModifiedSinceActionboolget; set

ModifiedSinceAction​

No description yet.

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

Type: bool · Access: read/write

Methods​

MethodReturnsDescription
BeginUpdatevoid
ClearGraphvoid
ClearMaskvoid
ClearSelectionvoid
CurrentLineNumberint
EndUpdatevoid
GetCursorPositionvoid
GetLinevoid
GetLineVisibilitybool
GetSelectedTextstring
GetTextAtCursorstring
GetTextAtCursorExstring
GetWideTextstring
HighlightFoundRectvoid
ImportEditorSettingsFromTaskingvoid
ImportEditorSettingsFromVisualStudiovoid
IsReadOnlybool
IsSelectedTextPresentbool
JumpTovoid
JumpToOffsetvoid
LineCountint
MarkLinevoid
MarkWordRightvoid
MaskBlockvoid
ReceivePreferencesChangedvoid
ReplaceTextvoid
SaveToFilevoid
SelectBlockvoid
SendPreferencesChangedvoid
SetFocusvoid
SetLinevoid
TempHighlightLinevoid
UpdateSyntaxvoid

BeginUpdate​

No description yet.

void BeginUpdate();

Returns: nothing (void)

ClearGraph​

No description yet.

void ClearGraph();

Returns: nothing (void)

ClearMask​

No description yet.

void ClearMask();

Returns: nothing (void)

ClearSelection​

No description yet.

void ClearSelection();

Returns: nothing (void)

CurrentLineNumber​

No description yet.

int CurrentLineNumber();

Returns: int

EndUpdate​

No description yet.

void EndUpdate();

Returns: nothing (void)

GetCursorPosition​

No description yet.

void GetCursorPosition(out int argPosX, out int argPosY);
ParameterTypePassing
argPosXintout
argPosYintout

Returns: nothing (void)

GetLine​

No description yet.

void GetLine(int argIndex, ref string argValue);
ParameterTypePassing
argIndexintvalue
argValuestringref

Returns: nothing (void)

GetLineVisibility​

No description yet.

bool GetLineVisibility(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: bool

GetSelectedText​

No description yet.

string GetSelectedText();

Returns: string

GetTextAtCursor​

No description yet.

string GetTextAtCursor();

Returns: string

GetTextAtCursorEx​

No description yet.

string GetTextAtCursorEx(TSysCharSet argExcludeDelimiters);
string GetTextAtCursorEx(ITransportSet argExcludeDelimiters);
ParameterTypePassing
argExcludeDelimitersTSysCharSetvalue

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.

string GetWideText();

Returns: string

HighlightFoundRect​

No description yet.

void HighlightFoundRect(int argX1, int argY1, int argX2, int argY2);
ParameterTypePassing
argX1intvalue
argY1intvalue
argX2intvalue
argY2intvalue

Returns: nothing (void)

ImportEditorSettingsFromTasking​

No description yet.

void ImportEditorSettingsFromTasking(bool argSendNotification);
ParameterTypePassing
argSendNotificationboolvalue

Returns: nothing (void)

ImportEditorSettingsFromVisualStudio​

No description yet.

void ImportEditorSettingsFromVisualStudio(bool argSendNotification);
ParameterTypePassing
argSendNotificationboolvalue

Returns: nothing (void)

IsReadOnly​

No description yet.

bool IsReadOnly();

Returns: bool

IsSelectedTextPresent​

No description yet.

bool IsSelectedTextPresent();

Returns: bool

JumpTo​

No description yet.

void JumpTo(int argX, int argY, bool argCentered);
ParameterTypePassing
argXintvalue
argYintvalue
argCenteredboolvalue

Returns: nothing (void)

JumpToOffset​

No description yet.

void JumpToOffset(int argOffset);
ParameterTypePassing
argOffsetintvalue

Returns: nothing (void)

LineCount​

No description yet.

int LineCount();

Returns: int

MarkLine​

No description yet.

void MarkLine();

Returns: nothing (void)

MarkWordRight​

No description yet.

void MarkWordRight();

Returns: nothing (void)

MaskBlock​

No description yet.

void MaskBlock(int argColumn, int argLine, int argLength, int argHeight);
ParameterTypePassing
argColumnintvalue
argLineintvalue
argLengthintvalue
argHeightintvalue

Returns: nothing (void)

ReceivePreferencesChanged​

No description yet.

void ReceivePreferencesChanged();

Returns: nothing (void)

ReplaceText​

No description yet.

void ReplaceText(int argX, int argY, int argLen, string argNewText);
ParameterTypePassing
argXintvalue
argYintvalue
argLenintvalue
argNewTextstringvalue

Returns: nothing (void)

SaveToFile​

No description yet.

void SaveToFile(string argFileName);
ParameterTypePassing
argFileNamestringvalue

Returns: nothing (void)

SelectBlock​

No description yet.

void SelectBlock(int argColumn, int argLine, int argLength, int argHeight);
ParameterTypePassing
argColumnintvalue
argLineintvalue
argLengthintvalue
argHeightintvalue

Returns: nothing (void)

SendPreferencesChanged​

No description yet.

void SendPreferencesChanged();

Returns: nothing (void)

SetFocus​

No description yet.

void SetFocus();

Returns: nothing (void)

SetLine​

No description yet.

void SetLine(int argIndex, string argValue);
ParameterTypePassing
argIndexintvalue
argValuestringvalue

Returns: nothing (void)

TempHighlightLine​

No description yet.

void TempHighlightLine(int argIndex, string argStyleName);
ParameterTypePassing
argIndexintvalue
argStyleNamestringvalue

Returns: nothing (void)

UpdateSyntax​

No description yet.

void UpdateSyntax();

Returns: nothing (void)