SimpleEditorView.SetInfo Method
Sets the information in the status bar to reflect this view.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
'Declaration
Public Overridable Function SetInfo As Integer
'Usage
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
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.