FastColoredTextBox Methods

T3000 CrossPlatform

FastColoredTextBox Methods

[This is preliminary documentation and is subject to change.]

The FastColoredTextBox type exposes the following members.

Methods
  NameDescription
Protected methodAccessibilityNotifyClients(AccessibleEvents, Int32) (Inherited from Control.)
Protected methodAccessibilityNotifyClients(AccessibleEvents, Int32, Int32) (Inherited from Control.)
Public methodAddHint(Range, String)
Add and shows simple text hint
Public methodAddHint(Range, Control)
Add and shows the hint
Public methodAddHint(Range, String, Boolean, Boolean, Boolean)
Add and shows simple text hint
Public methodAddHint(Range, Control, Boolean, Boolean, Boolean)
Add and shows the hint
Public methodAddStyle
Add new style
Public methodAddVisualMarker
Public methodAdjustFolding
Collapse folding blocks using FoldedBlocks dictionary.
Protected methodAdjustFormScrollbars (Inherited from ContainerControl.)
Public methodAppendText(String)
Append string to end of the Text
Public methodAppendText(String, Style)
Append string to end of the Text
Public methodBeginAutoUndo
Begins AutoUndo block. All changes of text between BeginAutoUndo() and EndAutoUndo() will be canceled in one operation Undo.
Public methodBeginInvoke(Delegate) (Inherited from Control.)
Public methodBeginInvoke(Delegate, Object) (Inherited from Control.)
Public methodBeginUpdate
Call this method before multiple text changing
Public methodBookmarkLine
Bookmarks line
Public methodBringToFront (Inherited from Control.)
Public methodCalcAutoIndent
Returns needed start space count for the line
Public methodStatic memberCalcCutOffs
Calculates wordwrap cutoffs
Public methodChangeFontSize
Protected methodCheckAndChangeSelectionType
Public methodCheckStylesBufferSize
Checks if the styles buffer has enough space to add one more element. If not, an exception is thrown. Otherwise, the index of a free slot is returned.
Public methodClear
Clear text, styles, history, caches
Public methodClearCurrentLine
Deletes current line(s)
Public methodClearHints
Removes all hints
Public methodClearSelected
Deletes selected chars
Public methodClearStyle
Clear style of all text
Public methodClearStylesBuffer
Clear buffer of styles
Public methodClearUndo
Clears undo and redo stacks
Public methodCloseBindingFile
Close file binding mode
Public methodCollapseAllFoldingBlocks
Collapses all folding blocks
Public methodCollapseBlock
Collapse text block
Public methodCollapseFoldingBlock
Collapses folding block
Public methodCommentSelected
Insert/remove comment prefix into selected lines
Public methodCommentSelected(String)
Insert/remove comment prefix into selected lines
Public methodContains (Inherited from Control.)
Public methodCopy
Copy selected text into Clipboard
Protected methodCreateAccessibilityInstance (Inherited from Control.)
Public methodCreateControl (Inherited from Control.)
Protected methodCreateControlsInstance (Inherited from Control.)
Public methodCreateGraphics (Inherited from Control.)
Protected methodCreateHandle (Inherited from Control.)
Public methodCreateObjRef (Inherited from MarshalByRefObject.)
Protected methodCreateTextSource
Public methodCut
Cut selected text into Clipboard
Public methodDecreaseIndent
Remove TAB from front of seletcted lines.
Protected methodDecreaseIndentOfSingleLine
Remove TAB in front of the caret ot the selected line.
Protected methodDefWndProc (Inherited from Control.)
Protected methodDestroyHandle (Inherited from Control.)
Public methodDispose (Inherited from Component.)
Protected methodDispose(Boolean) (Overrides ContainerControlDispose(Boolean).)
Public methodDoAutoIndent
Insert autoindents into selected lines
Public methodDoAutoIndent(Int32)
Inserts autoindent's spaces in the line
Public methodDoAutoIndentChars(Int32)
Do AutoIndentChars
Protected methodDoAutoIndentChars(Int32, Regex)
Public methodDoAutoIndentIfNeed
Public methodDoCaretVisible
Scroll control for display caret
Public methodDoDragDrop(Object, DragDropEffects) (Inherited from Control.)
Protected methodDoDragDrop(Place, String)
Public methodDoRangeVisible(Range)
Scroll control for display given range
Public methodDoRangeVisible(Range, Boolean)
Scroll control for display given range
Public methodDoSelectionVisible
Scroll control for display selection area
Protected methodDrawFoldingLines
Public methodDrawText
Draws text to given Graphics
Public methodDrawToBitmap (Inherited from Control.)
Public methodEndAutoUndo
Ends AutoUndo block. All changes of text between BeginAutoUndo() and EndAutoUndo() will be canceled in one operation Undo.
Public methodEndInvoke (Inherited from Control.)
Public methodEndUpdate
Call this method after multiple text changing
Public methodEquals (Inherited from Object.)
Public methodExpandAllFoldingBlocks
Exapnds all folded blocks
Public methodExpandBlock(Int32)
Expand collapsed block
Public methodExpandBlock(Int32, Int32)
Expand collapsed block
Public methodExpandFoldedBlock
Exapnds folded block
Protected methodFinalize (Inherited from Component.)
Protected methodFindChar
Finds given char after current caret position, moves the caret to found pos.
Protected methodFindEndOfFoldingBlock
Public methodFindForm (Inherited from Control.)
Public methodFindLines
Search lines by regex pattern
Public methodFocus (Inherited from Control.)
Protected methodGetAccessibilityObjectById (Inherited from Control.)
Protected methodGetAutoSizeMode (Inherited from Control.)
Public methodGetBracketsRange
Returns range between brackets (or null if not found)
Public methodStatic memberGetCharSize
Public methodGetChildAtPoint(Point) (Inherited from Control.)
Public methodGetChildAtPoint(Point, GetChildAtPointSkip) (Inherited from Control.)
Public methodGetContainerControl (Inherited from Control.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetLifetimeService (Inherited from MarshalByRefObject.)
Public methodGetLine
Get range of line
Public methodGetLineFoldingEndMarker
End foilding marker for the line
Public methodGetLineFoldingStartMarker
Start foilding marker for the line
Public methodGetLineLength
Gets length of given line
Public methodGetLineText
Get text of given line
Protected methodGetMaxStartSpacesCount
Protected methodGetMinStartSpacesCount
Public methodGetNextControl (Inherited from Control.)
Public methodGetPreferredSize (Inherited from Control.)
Public methodGetRange(Int32, Int32)
Get range of text
Public methodGetRange(Place, Place)
Get range of text
Public methodGetRanges(String)
Finds ranges for given regex pattern
Public methodGetRanges(String, RegexOptions)
Finds ranges for given regex pattern
Protected methodGetScaledBounds (Inherited from Control.)
Protected methodGetScrollState (Inherited from ScrollableControl.)
Protected methodGetService (Inherited from Component.)
Protected methodGetStyle (Inherited from Control.)
Public methodGetStyleIndex
Returns index of the style in Styles -1 otherwise
Public methodGetStyleIndexMask
Returns StyleIndex mask of given styles
Public methodGetStylesOfChar
Returns list of styles of given place
Protected methodGetTopLevel (Inherited from Control.)
Public methodGetType (Inherited from Object.)
Public methodGetVisibleState
Returns VisibleState of the line
Public methodGoEnd
Move caret to end of text
Public methodGoHome
Move caret to first position
Public methodGotoNextBookmark
Scrolls to nearest bookmark or to first bookmark
Public methodGotoPrevBookmark
Scrolls to nearest previous bookmark or to last bookmark
Public methodHide (Inherited from Control.)
Public methodIncreaseIndent
Insert TAB into front of seletcted lines.
Public methodInitializeLifetimeService (Inherited from MarshalByRefObject.)
Protected methodInitLayout (Inherited from Control.)
Protected methodInitTextSource
Protected methodInsertChar
Public methodInsertLinePrefix
Insert prefix into front of seletcted lines
Public methodInsertText(String)
Insert text into current selected position
Public methodInsertText(String, Style)
Insert text into current selection position (with predefined style)
Public methodInsertText(String, Boolean)
Insert text into current selected position
Public methodInsertText(String, Style, Boolean)
Insert text into current selection position (with predefined style)
Public methodInsertTextAndRestoreSelection
Insert text into replaceRange and restore previous selection
Public methodInvalidate
Invalidates the entire surface of the control and causes the control to be redrawn. This method is thread safe and does not require Invoke.
Public methodInvalidate(Region) (Inherited from Control.)
Public methodInvalidate(Boolean) (Inherited from Control.)
Public methodInvalidate(Rectangle) (Inherited from Control.)
Public methodInvalidate(Region, Boolean) (Inherited from Control.)
Public methodInvalidate(Rectangle, Boolean) (Inherited from Control.)
Public methodInvoke(Delegate) (Inherited from Control.)
Public methodInvoke(Delegate, Object) (Inherited from Control.)
Protected methodInvokeGotFocus (Inherited from Control.)
Protected methodInvokeLostFocus (Inherited from Control.)
Protected methodInvokeOnClick (Inherited from Control.)
Protected methodInvokePaint (Inherited from Control.)
Protected methodInvokePaintBackground (Inherited from Control.)
Public methodStatic memberIsCJKLetter
Protected methodIsInputChar (Inherited from Control.)
Protected methodIsInputKey (Overrides ControlIsInputKey(Keys).)
Public methodLowerCase
Convert selected text to lower case
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodMemberwiseClone(Boolean) (Inherited from MarshalByRefObject.)
Public methodMoveSelectedLinesDown
Moves selected lines down
Public methodMoveSelectedLinesUp
Moves selected lines up
Public methodNavigate
Navigates to defined line, without Line.LastVisit reseting
Public methodNavigateBackward
Navigates backward (by Line.LastVisit property)
Public methodNavigateForward
Navigates forward (by Line.LastVisit property)
Public methodNeedRecalc
Call this method if the recalc of the position of lines is needed.
Public methodNeedRecalc(Boolean)
Call this method if the recalc of the position of lines is needed.
Public methodNeedRecalc(Boolean, Boolean)
Call this method if the recalc of the position of lines is needed.
Protected methodNotifyInvalidate (Inherited from Control.)
Protected methodOnAutoSizeChanged (Inherited from Control.)
Protected methodOnAutoValidateChanged (Inherited from ContainerControl.)
Protected methodOnBackColorChanged (Inherited from Control.)
Protected methodOnBackgroundImageChanged (Inherited from Control.)
Protected methodOnBackgroundImageLayoutChanged (Inherited from Control.)
Protected methodOnBindingContextChanged (Inherited from Control.)
Protected methodOnCausesValidationChanged (Inherited from Control.)
Protected methodOnChangeUICues (Inherited from Control.)
Protected methodOnCharSizeChanged
Protected methodOnClick (Inherited from Control.)
Protected methodOnClientSizeChanged (Overrides ControlOnClientSizeChanged(EventArgs).)
Protected methodOnContextMenuChanged (Inherited from Control.)
Protected methodOnContextMenuStripChanged (Inherited from Control.)
Protected methodOnControlAdded (Inherited from Control.)
Protected methodOnControlRemoved (Inherited from Control.)
Protected methodOnCreateClipboardData
Protected methodOnCreateControl (Inherited from UserControl.)
Protected methodOnCursorChanged (Inherited from Control.)
Protected methodOnCustomAction
Protected methodOnDockChanged (Inherited from Control.)
Protected methodOnDoubleClick (Inherited from Control.)
Protected methodOnDragDrop (Overrides ControlOnDragDrop(DragEventArgs).)
Protected methodOnDragEnter (Overrides ControlOnDragEnter(DragEventArgs).)
Protected methodOnDragLeave (Overrides ControlOnDragLeave(EventArgs).)
Protected methodOnDragOver (Overrides ControlOnDragOver(DragEventArgs).)
Protected methodOnEnabledChanged (Inherited from Control.)
Protected methodOnEnter (Overrides ControlOnEnter(EventArgs).)
Protected methodOnFoldingHighlightChanged
Protected methodOnFontChanged (Inherited from ContainerControl.)
Protected methodOnForeColorChanged (Inherited from Control.)
Protected methodOnGiveFeedback (Inherited from Control.)
Protected methodOnGotFocus (Overrides ControlOnGotFocus(EventArgs).)
Protected methodOnHandleCreated (Overrides ControlOnHandleCreated(EventArgs).)
Protected methodOnHandleDestroyed (Inherited from Control.)
Protected methodOnHelpRequested (Inherited from Control.)
Public methodOnHintClick
Occurs when user click on the hint
Protected methodOnImeModeChanged (Inherited from Control.)
Protected methodOnInvalidated (Inherited from Control.)
Protected methodOnKeyDown (Overrides ControlOnKeyDown(KeyEventArgs).)
Protected methodOnKeyPress (Inherited from Control.)
Public methodOnKeyPressed
Public methodOnKeyPressing
Protected methodOnKeyUp (Overrides ControlOnKeyUp(KeyEventArgs).)
Protected methodOnLayout (Inherited from ContainerControl.)
Protected methodOnLeave (Inherited from Control.)
Protected methodOnLoad (Overrides UserControlOnLoad(EventArgs).)
Protected methodOnLocationChanged (Inherited from Control.)
Protected methodOnLostFocus (Overrides ControlOnLostFocus(EventArgs).)
Protected methodOnMarginChanged (Inherited from Control.)
Protected methodOnMarkerClick
Protected methodOnMarkerDoubleClick
Protected methodOnMouseCaptureChanged (Inherited from Control.)
Protected methodOnMouseClick (Inherited from Control.)
Protected methodOnMouseDoubleClick (Overrides ControlOnMouseDoubleClick(MouseEventArgs).)
Protected methodOnMouseDown (Overrides UserControlOnMouseDown(MouseEventArgs).)
Protected methodOnMouseEnter (Inherited from Control.)
Protected methodOnMouseHover (Inherited from Control.)
Protected methodOnMouseLeave (Overrides ControlOnMouseLeave(EventArgs).)
Protected methodOnMouseMove (Overrides ControlOnMouseMove(MouseEventArgs).)
Protected methodOnMouseUp (Overrides ControlOnMouseUp(MouseEventArgs).)
Protected methodOnMouseWheel (Overrides ScrollableControlOnMouseWheel(MouseEventArgs).)
Protected methodOnMove (Inherited from Control.)
Protected methodOnNotifyMessage (Inherited from Control.)
Protected methodOnPaddingChanged (Inherited from ScrollableControl.)
Protected methodOnPaint
Draw control
(Overrides ControlOnPaint(PaintEventArgs).)
Protected methodOnPaintBackground (Overrides ScrollableControlOnPaintBackground(PaintEventArgs).)
Protected methodOnPaintLine
Protected methodOnParentBackColorChanged (Inherited from Control.)
Protected methodOnParentBackgroundImageChanged (Inherited from Control.)
Protected methodOnParentBindingContextChanged (Inherited from Control.)
Protected methodOnParentChanged (Inherited from ContainerControl.)
Protected methodOnParentCursorChanged (Inherited from Control.)
Protected methodOnParentEnabledChanged (Inherited from Control.)
Protected methodOnParentFontChanged (Inherited from Control.)
Protected methodOnParentForeColorChanged (Inherited from Control.)
Protected methodOnParentRightToLeftChanged (Inherited from Control.)
Protected methodOnParentVisibleChanged (Inherited from Control.)
Protected methodOnPreviewKeyDown (Inherited from Control.)
Protected methodOnPrint (Inherited from Control.)
Protected methodOnQueryContinueDrag (Inherited from Control.)
Protected methodOnRegionChanged (Inherited from Control.)
Protected methodOnResize (Inherited from UserControl.)
Protected methodOnRightToLeftChanged (Inherited from ScrollableControl.)
Protected methodOnScroll(ScrollEventArgs) (Overrides ScrollableControlOnScroll(ScrollEventArgs).)
Public methodOnScroll(ScrollEventArgs, Boolean)
Protected methodOnScrollbarsUpdated
Public methodOnSelectionChanged
Fires SelectionChanged event
Public methodOnSelectionChangedDelayed
Protected methodOnSizeChanged (Inherited from Control.)
Protected methodOnStyleChanged (Inherited from Control.)
Public methodOnSyntaxHighlight
Protected methodOnSystemColorsChanged (Inherited from Control.)
Protected methodOnTabIndexChanged (Inherited from Control.)
Protected methodOnTabStopChanged (Inherited from Control.)
Public methodOnTextChanged
Fires TextChanged event
Protected methodOnTextChanged(EventArgs) (Inherited from Control.)
Public methodOnTextChanged(Range)
Fires TextChanged event
Protected methodOnTextChanged(TextChangedEventArgs)
Fires TextChanged event
Public methodOnTextChanged(Int32, Int32)
Fires TextChanged event
Public methodOnTextChangedDelayed
Public methodOnTextChanging
Public methodOnTextChanging(String)
Fires TextChanging event
Protected methodOnToolTip
Public methodOnUndoRedoStateChanged
Occurs when undo/redo stack is changed
Protected methodOnValidated (Inherited from Control.)
Protected methodOnValidating (Inherited from Control.)
Protected methodOnVisibleChanged (Inherited from ScrollableControl.)
Public methodOnVisibleRangeChanged
Occurs when VisibleRange is changed
Public methodOnVisibleRangeChangedDelayed
Public methodOnVisualMarkerClick
Protected methodOnZoomChanged
Public methodOpenBindingFile
Open file binding mode
Public methodOpenFile(String)
Open text file (with automatic encoding detector)
Public methodOpenFile(String, Encoding)
Open text file
Public methodPaste
Paste text from clipboard into selected position
Public methodPerformAutoScale (Inherited from ContainerControl.)
Public methodPerformLayout (Inherited from Control.)
Public methodPerformLayout(Control, String) (Inherited from Control.)
Public methodPlaceToPoint
Gets point for given line and char position
Public methodPlaceToPosition
Gets absolute text position from line and char position
Public methodPointToClient (Inherited from Control.)
Public methodPointToPlace
Gets nearest line and char position from coordinates
Public methodPointToPosition
Gets nearest absolute text position for given point
Public methodPointToScreen (Inherited from Control.)
Public methodPositionToPlace
Gets line and char position from absolute text position
Public methodPositionToPoint
Gets absolute char position from char position
Public methodStatic memberPrepareHtmlForClipboard
Protected methodPrepareHtmlText
Public methodPreProcessControlMessage (Inherited from Control.)
Public methodPreProcessMessage (Inherited from Control.)
Public methodPrint
Prints all text, without any dialog windows
Public methodPrint(PrintDialogSettings)
Prints all text
Public methodPrint(Range, PrintDialogSettings)
Prints range of text
Protected methodProcessCmdKey (Inherited from ContainerControl.)
Protected methodProcessDialogChar (Inherited from ContainerControl.)
Protected methodProcessDialogKey (Overrides ContainerControlProcessDialogKey(Keys).)
Public methodProcessKey(Keys)
Process control keys
Public methodProcessKey(Char, Keys)
Process "real" keys (no control)
Protected methodProcessKeyEventArgs (Inherited from Control.)
Protected methodProcessKeyMessage (Overrides ControlProcessKeyMessage(Message).)
Protected methodProcessKeyPreview (Inherited from Control.)
Protected methodProcessMnemonic (Overrides ContainerControlProcessMnemonic(Char).)
Protected methodProcessTabKey (Inherited from ContainerControl.)
Protected methodRaiseDragEvent (Inherited from Control.)
Protected methodRaiseKeyEvent (Inherited from Control.)
Protected methodRaiseMouseEvent (Inherited from Control.)
Protected methodRaisePaintEvent (Inherited from Control.)
Protected methodRecalcFoldingLines
Protected methodRecreateHandle (Inherited from Control.)
Public methodRectangleToClient (Inherited from Control.)
Public methodRectangleToScreen (Inherited from Control.)
Public methodRedo
Redo
Public methodRefresh (Inherited from Control.)
Public methodRemoveLinePrefix
Remove prefix from front of selected lines This method ignores forward spaces of the line
Public methodRemoveLines
Removes given lines
Public methodResetBackColor (Inherited from Control.)
Public methodResetBindings (Inherited from Control.)
Public methodResetCursor (Inherited from Control.)
Public methodResetFont (Inherited from Control.)
Public methodResetForeColor (Inherited from Control.)
Public methodResetImeMode (Inherited from Control.)
Protected methodResetMouseEventArgs (Inherited from Control.)
Public methodResetRightToLeft (Inherited from Control.)
Public methodResetText (Inherited from Control.)
Public methodResumeLayout (Inherited from Control.)
Public methodResumeLayout(Boolean) (Inherited from Control.)
Protected methodRtlTranslateAlignment(HorizontalAlignment) (Inherited from Control.)
Protected methodRtlTranslateAlignment(LeftRightAlignment) (Inherited from Control.)
Protected methodRtlTranslateAlignment(ContentAlignment) (Inherited from Control.)
Protected methodRtlTranslateContent (Inherited from Control.)
Protected methodRtlTranslateHorizontal (Inherited from Control.)
Protected methodRtlTranslateLeftRight (Inherited from Control.)
Public methodSaveToFile
Save text to the file
Public methodScale(Single) Obsolete. (Inherited from Control.)
Public methodScale(SizeF) (Inherited from Control.)
Public methodScale(Single, Single) Obsolete. (Inherited from Control.)
Protected methodScaleControl (Inherited from ScrollableControl.)
Protected methodScaleCore (Inherited from ScrollableControl.)
Public methodScrollControlIntoView (Inherited from ScrollableControl.)
Public methodScrollLeft
Scroll control left
Protected methodScrollToControl (Inherited from ScrollableControl.)
Public methodSelect (Inherited from Control.)
Protected methodSelect(Boolean, Boolean) (Inherited from ContainerControl.)
Public methodSelectAll
Select all chars of text
Public methodSelectNext
Selectes next fragment for given regex.
Public methodSelectNextControl (Inherited from Control.)
Public methodSendToBack (Inherited from Control.)
Public methodSentenceCase
Convert selected text to sentence case
Public methodSetAutoScrollMargin (Inherited from ScrollableControl.)
Protected methodSetAutoSizeMode (Inherited from Control.)
Public methodSetBounds(Int32, Int32, Int32, Int32) (Inherited from Control.)
Public methodSetBounds(Int32, Int32, Int32, Int32, BoundsSpecified) (Inherited from Control.)
Protected methodSetBoundsCore (Inherited from Control.)
Protected methodSetClientSizeCore (Inherited from Control.)
Protected methodSetClipboard
Protected methodSetDisplayRectLocation (Inherited from ScrollableControl.)
Protected methodSetScrollState (Inherited from ScrollableControl.)
Protected methodSetStyle (Inherited from Control.)
Protected methodSetTopLevel (Inherited from Control.)
Protected methodSetVisibleCore (Inherited from Control.)
Public methodSetVisibleState
Set VisibleState of line
Public methodShow (Inherited from Control.)
Public methodShowFindDialog
Shows find dialog
Public methodShowFindDialog(String)
Shows find dialog
Public methodShowGoToDialog
Shows Goto dialog form
Public methodShowReplaceDialog
Shows replace dialog
Public methodShowReplaceDialog(String)
Shows replace dialog
Protected methodSizeFromClientSize (Inherited from Control.)
Public methodSuspendLayout (Inherited from Control.)
Public methodTitleCase
Convert selected text to title case
Public methodToString (Inherited from Component.)
Public methodUnbookmarkLine
Unbookmarks current line
Public methodUndo
Undo last operation
Public methodUpdate (Inherited from Control.)
Protected methodUpdateBounds (Inherited from Control.)
Protected methodUpdateBounds(Int32, Int32, Int32, Int32) (Inherited from Control.)
Protected methodUpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32) (Inherited from Control.)
Protected methodUpdateDefaultButton (Inherited from ContainerControl.)
Public methodUpdateScrollbars
Updates scrollbar position after Value changed
Protected methodUpdateStyles (Inherited from Control.)
Protected methodUpdateZOrder (Inherited from Control.)
Public methodUpperCase
Convert selected text to upper case
Public methodValidate (Inherited from ContainerControl.)
Public methodValidate(Boolean) (Inherited from ContainerControl.)
Public methodValidateChildren (Inherited from UserControl.)
Public methodValidateChildren(ValidationConstraints) (Inherited from UserControl.)
Protected methodWndProc (Overrides UserControlWndProc(Message).)
Top
See Also