Skip to main content
All docs
V23.2

TextEditCustomHighlightTextEventArgs Members

Contains data for the TextEdit.CustomHighlightText and RepositoryItemTextEdit.CustomHighlightText events.

Constructors

Name Description
TextEditCustomHighlightTextEventArgs(Int32, String, Int32, Boolean) Initializes a new instance of the TextEditCustomHighlightTextEventArgs class with specified settings.

Fields

Name Description
Empty static Provides a value to use with events that do not have event data. Inherited from EventArgs.

Properties

Name Description
LineIndex Gets the zero-based index of the currently processed text line for multi-line text. Returns 0 for single-line text.
Text Gets the currently processed text/text line (for multi-line text).
TextPosition Gets the position of the currently processed text line within the editor’s text.

Methods

Name Description
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
HighlightRange(Int32, Int32, Action<TextEdit.Block>) Highlights or custom paints a text block at a specified position.
HighlightRange(Int32, Int32, Color, Color) Highlights a text block at a specific position using custom foreground and background colors.
HighlightRange(Int32, Int32, Color) Highlights a text block at a specified position using a custom foreground color.
HighlightRanges(String, Action<TextEdit.Block>, CompareOptions) Highlights or custom paints all text blocks that have the specified content.
HighlightRanges(String, Color, Color, CompareOptions) Highlights all text blocks that have specified content using custom foreground and background colors.
HighlightRanges(String, Color, CompareOptions) Highlights all text blocks that have the specified content using a custom foreground color.
HighlightWords(String, Action<TextEdit.Block>, CompareOptions) Highlights or custom paints whole words.
HighlightWords(String, Color, Color, CompareOptions) Highlights whole words using custom foreground and background colors.
HighlightWords(String, Color, CompareOptions) Highlights whole words using a custom foreground color.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also