Compartilhar via


IVsStatusbar.SetLineChar(Object, Object) Method

Definition

Displays the line number and character position in the editor information area of the status bar.

public:
 int SetLineChar(System::Object ^ % pvLine, System::Object ^ % pvChar);
int SetLineChar(winrt::Windows::Foundation::IInspectable const & & pvLine, winrt::Windows::Foundation::IInspectable const & & pvChar);
public int SetLineChar (ref object pvLine, ref object pvChar);
abstract member SetLineChar : obj * obj -> int
Public Function SetLineChar (ByRef pvLine As Object, ByRef pvChar As Object) As Integer

Parameters

pvLine
Object

[in] Line number of the cursor.

pvChar
Object

[in] Character position of the cursor.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsStatusbar::SetLineChar(  
   [in]VARIANT *pvLine,  
   [in]VARIANT *pvChar  
);  

The line number and character position are displayed as "Ln##Ch##" in the editor information area of the status bar.

For both parameters, pass in null to leave their values unchanged. The VARIANT for each parameter must be VT_I2, VT_I4, VT_BSTR, or VT_EMPTY. If it is VT_I2 or VT_I4, the number is formatted into Ln ##, Ch ##. If it is VT_BSTR, the text is displayed as is, with no formatting. If it is VT_EMPTY, that field is not displayed.

Applies to