Condividi tramite


Completor.RefreshLine Method

Obtains the current line of text from the Source object.

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

Syntax

'Declaration
Public Sub RefreshLine
public void RefreshLine()
public:
void RefreshLine()
member RefreshLine : unit -> unit
public function RefreshLine()

Remarks

This method retrieves the entire contents of the current line from the text view by calling the GetLine method on the Source object that was obtained in the Completor class constructor.

The entire line is grabbed in order to cache it for later use if the TypeLeft or TypeRight methods are called.

.NET Framework Security

See Also

Reference

Completor Class

Microsoft.VisualStudio.Package Namespace