Metodo IVsLanguageLineIndent.GetIndentPosition
Determina come “spazia„ per aggiungere all'inizio di una riga.
Spazio dei nomi: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Sintassi
'Dichiarazione
Function GetIndentPosition ( _
pBaseLayer As IVsTextLayer, _
BaseBufferLineIndex As Integer, _
<OutAttribute> ByRef pIndentPosition As Integer _
) As Integer
int GetIndentPosition(
IVsTextLayer pBaseLayer,
int BaseBufferLineIndex,
out int pIndentPosition
)
int GetIndentPosition(
[InAttribute] IVsTextLayer^ pBaseLayer,
[InAttribute] int BaseBufferLineIndex,
[OutAttribute] int% pIndentPosition
)
abstract GetIndentPosition :
pBaseLayer:IVsTextLayer *
BaseBufferLineIndex:int *
pIndentPosition:int byref -> int
function GetIndentPosition(
pBaseLayer : IVsTextLayer,
BaseBufferLineIndex : int,
pIndentPosition : int
) : int
Parametri
pBaseLayer
Tipo: Microsoft.VisualStudio.TextManager.Interop.IVsTextLayer[in] IVsTextLayer oggetto.
BaseBufferLineIndex
Tipo: Int32[in] L'indice della riga che venga applicato un rientro.
pIndentPosition
Tipo: Int32%[out] Restituisce il numero di spazi da aggiungere all'inizio della riga.
Valore restituito
Tipo: Int32
Se il metodo ha esito positivo, restituisce S_OK.Se non riesce, restituisce un codice di errore.
Note
Firma COM
da textmgr2.idl:
HRESULT IVsLanguageLineIndent::GetIndentPosition(
[in] IVsTextLayer *pBaseLayer,
[in]long BaseBufferLineIndex,
[out] long *pIndentPosition
);
La posizione del rientro restituita deve essere espresse di visualizzazione, ovvero, il numero di colonne dal margine sinistro della visualizzazione.
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per altre informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.