Condividi tramite


SimpleEditorView.SetInfo Method

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

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

Syntax

'Dichiarazione
Public Overridable Function SetInfo As Integer
'Utilizzo
Dim instance As SimpleEditorView
Dim returnValue As Integer

returnValue = instance.SetInfo()
public virtual int SetInfo()
public:
virtual int SetInfo()
abstract SetInfo : unit -> int 
override SetInfo : unit -> int 
public function SetInfo() : int

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

SimpleEditorView Members

Microsoft.VisualStudio.Package Namespace