Links
EControl Syntax Editor SDK
TCustomSyntaxMemo Methods

The methods of the TCustomSyntaxMemo class are listed here.

Method 
Description 
Adds client of the syntax memo events. 
Recalculates scroll bars ranges and positions. 
Aligns parts of the specified lines by columns. 
Aligns parts of the selected lines by columns. 
Aligns tokens in specified lines. 
Aligns tokens in selected lines. 
Called when editor requires text up to position APos to be analyzed. 
Starts animation at the caret position. 
Starts OLE text dragging. 
Suspends screen repainting. 
Returns bookmark index for the specified line. 
Calculates count of logical lines. 
Calculates margins of text area. 
Returns True if selection exists and selected text can be deleted. 
Returns True if the text range can be deleted. 
Returns True if the text can be inserted at the specified position. 
Return true if selected lines can be moved at specified direction (parameter MoveUp). 
Indicates whether the edit control contains undone changes that can be repeated. 
Returns True if the selection (selected lines) can be sorted. 
Determines whether specified caret position is in text. 
Called when caret position is changed. 
Converts (X, Y) position of the caret to zero-based text position. 
Converts (cX, cY) position (like CaretPos) to position with respect to the top-left corner of the char in editor client coordinates. 
Called when the text for the syntax memo is changed. 
Changes case of the specified text range. 
Deletes all text from the edit control. 
Removes all bookmarks. 
Removes all service objects. 
Clears redo records from undo buffer. 
Removes the selected text from the edit control. 
Clears the undo buffer so that no changes to the text can be backed out. 
Returns client reference if client is of type AClass. 
Collapses lines of the specified text range. 
Collapses nearest text range that contains given line. 
Collapses specified text range. 
Collapses specified user range. 
Jumps to the position of the last marker. 
Replaces Tab characters by the Spaces using TabList
Copies the selected text in the edit control to the Clipboard. 
Creates and initializes a TCustomSyntaxMemo instance. 
Creates marker at specified position. 
Initializes a window-creation parameter record passed in the Params parameter. 
Creates standard popup menu. 
Creates user range for the current selection and initialize some of it's properties. 
Creates a Windows control corresponding to the edit control. 
Returns height of the Canvas font in pixels. 
Returns current user range. 
Copies the selected text to the Clipboard and then deletes the selection. 
Default line height, which is equal sum of default text height (in current zoom) plus line spacings. 
Returns default character size. 
Deletes given number of characters from the caret position. 
Destroys an instance of TCustomSyntaxMemo. 
Performs automatic formatting of the text. 
Called before deleting portion of text. This method may be overridden in derived classes to control delete operations. 
Called before inserting text. This method may be overridden in derived classes to control inserting operations. 
Called while dragging text margin. 
Called after inserting single character in text. 
Called when scroll position is changed. Calls OnScroll event. 
Shows hint. 
Paints marker. 
Paints block staple one line portion. 
Drops marker at the specified caret position. 
Duplicates specified line. 
Re-enables screen repainting. 
Executes specified command. 
Executes standard edit actions. 
Replaces all Tab characters with the Spaces. 
Saves editor's text to file in HTML format. 
Saves editor's text to file in RTF format. 
Called when syntax analysis is finished. 
Returns index of first non-space character in the string S. 
Returns display style at the given text position. 
Called when styles of syntax analyzer is changed. 
Collapses text ranges and user ranges. 
Expands all collapsed ranges. 
Returns cursor when mouse is at specified position. 
Returns list of gutter objects at the specified line. 
Returns indent string. 
Calculates line layout, properties and word breaks. 
Returns line number string. This string is displayed as line number on the gutter. 
Called when mouse down to determine selection mode. 
Returns lines range with selection. 
Adds styled regions at specified position into List. 
Returns hint text for the specified token. 
Moves caret to the given bookmark, if this bookmark is assigned. 
Called on MouseDown when mouse cursor is over gutter. 
Returns gutter object at specified position. 
Return True if there is any selection. 
Shows current hint. 
Puts editor in incremental search mode. 
Terminates incremental search. 
Indents lines from sl line to el line on the Count positions. 
Inserts new line and indents caret position. This method performs auto-closing of opened text ranges. 
Inserts text at the caret position. 
Inserts multi-line text block to the specified (caret) position. 
Deletes portion of the text. 
Inserts text. 
Sets caret position. 
Sets linear selected block without caret moving. 
Invalidates only gutter. 
Invalidates specified lines. If UpdateHeights is true resets line information to recalculate heights. 
Invalidates lines occupied by the text range from StartPos to EndPos. 
Indicates whether specified command may be processed. 
Returns folding state of the line at the specified index. 
Defines whether mouse position (in client coordinates) is over text icon of collapsed text range. 
Defines whether character is "word" character. 
Iterates visible lines and calls Proc for each line. 
Moves caret to the matching "delimiter" (changes range side). 
Responds to key press events. 
Responds to keyboard input. 
Responds to released key. 
Returns position of last letter in the string S. 
Returns line number at client coordinate Y. 
Comments lines. 
Returns total line height. 
Calculates logical position from the caret position. 
Calculates logical position from the position in line. 
Calculates logical line number. 
Loads text from the specified file. 
Loads state of the editor from file. 
Calculates real line number from logical line number. 
Calculates caret position from logical position. 
Responds to mouse down event. 
Respond to mouse moving into control area. 
Responds to mouse moving out of control area. 
Responds to mouse move event. 
Calculates caret position for the point in editor's client coordinates. 
Responds to mouse up event. 
Moves selected lines on one line up or down. 
Moves selected text to new position. 
Returns caret position of the next word after word at caret position pt. 
Forwards notification messages to all owned components. 
Renders the image of a syntax editor. 
Called before painting areas not occupied by text. By default method returns False which means using default drawing. To customize painting in descendent return True and perform painting yourself. 
Pastes contents of the Clipboard into edit control, replacing the current selection. 
Defines whether position is in selection. 
Returns caret position of the previous word before word at caret position pt. 
Main line processing procedure. 
Redo 
Call Redo to repeat last undone operation. 
Refreshes results of syntactical analysis. 
Removes client. 
Removes trailing spaces. 
Replaces some portion of the text with the RepStr string. 
Closes hint window. 
Clears buffered line heights for lines after FromLine. 
Removes all search marks from the editor. 
Resets current selection. 
Responds to control resize. 
Save state of the editor to file. 
Saves text to the specified file. 
Scrolls text to make caret position visible. 
Scrolls text to specified scrolling position. 
Changes case of current selection. 
Selects all text in the edit control. 
Called when selection was changed. 
Selects specified line. 
Selects text lines. 
Selects word at the caret position. 
Sets text to the editor. 
Sets border style. 
Set cursor. 
Sets new search mark. 
Sets linear selected block and moves caret to the end of the selected block. 
Indents/unindents selected block. 
 
Expands all collapsed blocks which contain specified line, so this line becomes visible. 
Makes specified lines visible if they were folded. 
Calculates line height without word-wrapping. 
Repeats last single undone operation. 
Undoes last single operation. 
Looks for first visible character from the specified position. 
Returns nearest visible line relative specified line. 
Sorts lines. 
Sorts lines of selection. 
Calculates indent of the string S. Indent is a logical in-line position of the first non-space character. 
Returns caret position for the given text position. 
Prevents moving caret after following insert/delete operation. 
Drops marker at the caret position and collects the previous marker. 
Calculates rectangle of the editor text region. 
Called after text have been changed. 
ToggleBookmark sets or clears bookmarked locations. 
Toggles collapsing of the specified line. 
Toggles collapse state of internal (child) ranges of the range at the specified line. 
Returns index of the token at the specified mouse position. 
Undo 
Backs out changes in the undo buffer. 
Replaces TAB characters with spaces. 
Updates standard edit actions to reflect the current state of the editor. 
Invalidates editor and adjusts scroll bars. 
Returns number of visible columns (characters). 
Returns number of visible lines. 
Provides specific message responses for the control. 
Returns word at the given caret position. 
Returns word bounds at the given caret position. 
 
Method 
 
protected 
 
virtual 
Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!