Share via


Completor.AtEndOfLine Property

Determines if the internal caret position is at the end of the current line.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Declaration
Public ReadOnly Property AtEndOfLine As Boolean
public bool AtEndOfLine { get; }
public:
property bool AtEndOfLine {
    bool get ();
}
member AtEndOfLine : bool with get
function get AtEndOfLine () : boolean

Property Value

Type: System.Boolean
If the internal caret position is at the end of the line, returns true; otherwise, returns false.

Remarks

The internal caret position in this case is the character offset relative to the starting caret position, taking into account the text that has already been inserted. The text view's caret position is not updated until all changes represented by this Completor object are applied to the text view.

This method treats newlines as just another character: the end of the line is the end of all text on the line, including newlines.

.NET Framework Security

See Also

Reference

Completor Class

Microsoft.VisualStudio.Package Namespace