SimpleEditorView.SetInfo Method

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

Namespace:  Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'宣言
Public Overridable Function SetInfo As Integer
'使用
Dim instance As SimpleEditorView
Dim returnValue As Integer

returnValue = instance.SetInfo()
public virtual int SetInfo()
public:
virtual int SetInfo()
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].

Permissions

See Also

Reference

SimpleEditorView Class

SimpleEditorView Members

Microsoft.VisualStudio.Package Namespace