Skip to content

SyntaxEdit Control Members

See Also

SyntaxEdit Overview

Syntax Edit ActiveX Control v24.0
See Also

SyntaxEdit Control Members

Public Methods

Method Description
Public Method AddRemoveBookmark Adds or removes a bookmark at a specified row/line in the editor.
Public Method AddRemoveBreakPoint Adds or removes a break point at a specified row/line in the editor.
Public Method ClearUndoBuffer Clears the undo manager buffer and deletes all commands.
Public Method Copy Copies the selected text to clipboard.
Public Method Cut Copies the selected text to clipboard and deletes it from the document.
Public Method Find Finds a certain text with some parameters for find.
Public Method HideFindReplaceDialog Hides the Find or Replace dialog if visible.
Public Method IndentSelection Inserts a tab in front of the line that the cursor is currently positioned.
Public Method InsertRow Adds a row of text to the syntax editor.
Public Method NextBookmark Moves the current position in the editor to the next bookmark.
Public Method OpenFile Opens a text file to be displayed in the syntax editor.
Public Method Paste Pastes text from the clipboard to the current document at the position of the cursor.
Public Method PrevBookmark Moves the current position in the editor to the previous bookmark.
Public Method PrintPreview Displays a print preview window.
Public Method PrintPreviewExt Runs print preview in non-maximized mode with given screen position and size.
Public Method PrintText Prints the current Syntax Edit view.
Public Method PrintText2 Prints the current Syntax Edit view with the option to print immediately without showing any dialogs or needing any HDC handle.
Public Method Redo Reapplies previous editing actions that have been undone.
Public Method RedrawControl Redraws the visual properties of the editor.
Public Method RefreshColors Refreshes colors for the current document.
Public Method RemoveRow Removes a row of text from the syntax editor.
Public Method ReplaceAll Replaces all occurrences of szFindText with szReplaceText.
Public Method ReplaceSel Replaces a selection with the supplied text.
Public Method RowColCodeFromPoint Returns the column and row in the syntax editor at the specified x and y coordinates.
Public Method SaveFile Saves any modifications to the currently open text file.
Public Method SaveFileAs Saves any modifications to the currently open text file to a new file with the specified name.
Public Method SelectAll Selects all text in the Syntax Editor.
Public Method SetCodePage Sets the code page used by the syntax editor.
Public Method SetRowBkColor Sets the background color of a specified row.
Public Method SetRowColor Sets the text color of a specified row.
Public Method SetScrollBars Sets the scroll bars for the syntax editor.
Public Method ShowFindReplaceDialog Shows a find or replace dialog.
Public Method Undo Reverses previous editing actions on a document.
Public Method UnindentSelection Removes a tab in front of the line that the cursor is currently positioned.

Public Properties

Property Description
Public Property ActivateOnFocus Specifies whether to activate control on focus set.
Public Property AllowExpandCollapseInViewOnly Enables or disables the use of the expand/collapse buttons when in ViewOnly mode.
Public Property AutoCompleteWnd Gets or sets the width of the Intellisense Auto Complete Window.
Public Property AutoCompleteWndWidth Gets or sets the width of the Intellisense Auto Complete Window.
Public Property BorderStyle Gets or sets the border style of the syntax editor.
Public Property CanCopy Specifies whether some text in the editor is currently selected and can be copied to the clipboard.
Public Property CanCut Specifies whether some text in the editor is currently selected and can be cut from the document and placed on the clipboard.
Public Property CanPaste Determines whether the clipboard contains some text.
Public Property CanRedo Specifies whether a Redo action can be performed.
Public Property CanUndo Specifies whether an Undo action can be performed.
Public Property ConfigFile Gets or sets the path to the main configuration file.
Public Property CurrPos Gets/sets the current cursor position.
Public Property CustomTitle Gets/sets the title that is printed at the top of the page when the document is printed.
Public Property DataManager Not accessible at this time.
Public Property EnableAutoIndent Enables or disables auto indent.
Public Property Enabled Gets or sets a value that determines whether the syntax editor is enabled.
Public Property EnableEditAccelerators Enables or disables the use of commonly used edit accelerators such as Ctrl+C, Ctrl+V, etc.
Public Property EnableSyntaxColorization Enables/disables syntax colorization.
Public Property EnableVirtualSpace Specifies whether spaces are inserted at the end of each line of text.
Public Property FileMonitorMode Monitors changes to the syntax used to format the file.
Public Property FindReplaceDialogHistoryCountMax Returns whether the Find or Replace dialog is currently visible.
Public Property FindReplaceDialogVisible Gets or sets the font used to display text in the syntax editor.
Public Property Font Syntax Edit global settings, such as application name and resource file.
Public Property GlobalSettings Gets or sets whether the blinking cursor that shows the current position is visible.
Public Property HideCaret Specifies the format of the line numbers when visible.
Public Property hWnd hWnd property returns the handle to the syntax editor control.
Public Property LineMarksManager Returns or sets how a target component handles drop operations.
Public Property LineNumbersFormat Toggles the text-entry mode between insert and overwrite.
Public Property OLEDropMode Handles most of the drawing activities for colorizing the syntax editor.
Public Property OverwriteMode Options that specify how the syntax edit view should look when sent to a print device.
Public Property PaintManager Object that contains options for the print preview window.
Public Property PrintOptions Gets or sets a value indicating whether text in the syntax editor is read-only.
Public Property PrintPreviewOptions Returns the total number of lines in the syntax editor.
Public Property ReadOnly Gets or set the text for the specified row.
Public Property ReCreateReparented Gets the total number of characters in the specified row.
Public Property RowsCount Returns the currently selected text.
Public Property RowText Gets or sets whether collapsible nodes are visible.
Public Property RowTextLength Enables or disables line numbering.
Public Property Selection Enables or disables the horizontal scroll bar.
Public Property ShowCollapsibleNodes Enables or disables the vertical scroll bar.
Public Property ShowLineNumbers Enables or disables the gutter.
Public Property ShowScrollBarHorz Enables/disables showing white spaces (tabs/spaces).
Public Property ShowScrollBarVert Sets the tab size.
Public Property ShowSelectionMargin Enables/disables replacing tabs with spaces.
Public Property ShowWhiteSpace Gets or sets the text contained inside the syntax editor.
Public Property TabSize Gets the total number of characters in the syntax editor.
Public Property TabWithSpace Gets or sets the current top row in the editor.
Public Property Text Enables or disables a "ReadOnly" like mode.
Public Property TextLength
Public Property TopRow
Public Property ViewOnly

Events

Event Description
Public Event CurPosChanged Occurs when the cursor position has changed in the syntax editor.
Public Event DblClick Occurs when the user double-clicks the syntax edit control.
Public Event KeyDown Occurs when the user releases a key while a control has the focus. (To determine ANSI characters, use the KeyPress event.)
Public Event KeyUp Occurs when the user releases a key while a control has the focus. (To determine ANSI characters, use the KeyPress event.)
Public Event MouseDown Occurs when the user presses a mouse button.
Public Event MouseMove Occurs when the user moves the mouse.
Public Event MouseUp Occurs when the user releases a mouse button.
Public Event OLEDragDrop Occurs when a source component is dropped onto a target component when the source component determines that a drop can occur.
Public Event OLEDragOver Occurs when one component is dragged over another.
Public Event ReCreated
Public Event TextChanged Occurs when the contents of the syntax editor have been modified.

See Also

SyntaxEdit Overview


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.