ITextCaret.OverwriteMode Property

Definition

Determines whether the caret is in overwrite mode.

public:
 property bool OverwriteMode { bool get(); };
public:
 property bool OverwriteMode { bool get(); };
public bool OverwriteMode { get; }
member this.OverwriteMode : bool
Public ReadOnly Property OverwriteMode As Boolean

Property Value

true if the caret is in overwrite mode.

Remarks

When the caret is in overwrite mode, typed characters replace the character under the caret, and a block is drawn instead of a vertical line.

This is distinct from the IEditorOptions overwrite mode, since the caret can switch modes based on its position in the view. The caret is not in OverwriteMode when it is positioned at the end of the line in a view, or when there is a non-empty selection, even if IEditorOptions.OverwriteMode is true.

Applies to