Compartilhar via


SimpleEditorView.SetInfo Method

Sets the information in the status bar to reflect this view.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   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.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Declaração
Public Overridable Function SetInfo As Integer
public virtual int SetInfo()

Return Value

Type: System.Int32
When implemented by derived classes, if the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsStatusbarUser.SetInfo()

Remarks

By default this method returns S_OK.

This method is called when the window associated with this view becomes active. This method then sets the various parts of the status bar to reflect the current conditions of this view by calling the respective methods of the [T:Microsoft.VisualStudio.Shell.Interop.][IVsStatusbar] interface, such as [M:Microsoft.VisualStudio.Shell.Interop.][IVsStatusbar][SetText][SetLineColChar] and [M:Microsoft.VisualStudio.Shell.Interop.][IVsStatusbar][SetInsMode].

.NET Framework Security

See Also

Reference

SimpleEditorView Class

Microsoft.VisualStudio.Package Namespace