Helper class with caret-related methods.
|C#||Visual Basic||Visual C++|
public sealed class Caret
Public NotInheritable Class Caret
public ref class Caret sealed
Scrolls the text view so that the caret is visible.
Returns the caret rectangle. The coordinate system is in device-independent pixels from the top of the document.
Gets/Sets the color of the caret.
Gets/Sets the caret column.
Gets/Sets the desired x-position of the caret, in device-independent pixels. This property is NaN if the caret has no desired position.
Serves as a hash function for a particular type.(Inherited from Object.)
Gets the Type of the current instance.(Inherited from Object.)
Makes the caret invisible.
Gets whether the caret is in virtual space.
Gets/Sets the caret line.
Gets/Sets the location of the caret. The getter of this property is faster than Position because it doesn't have to validate the visual column.
Gets/Sets the caret offset. Setting the caret offset has the side effect of setting the DesiredXPos to NaN.
Gets/Sets the position of the caret. Retrieving this property will validate the visual column (which can be expensive). Use the Location property instead if you don't need the visual column.
Event raised when the caret position has changed. If the caret position is changed inside a document update (between BeginUpdate/EndUpdate calls), the PositionChanged event is raised only once at the end of the document update.
Makes the caret visible and updates its on-screen position.
Gets/Sets the caret visual column.
Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 184.108.40.20638