Partilhar via


Método IVsPackageDefinedTextMarkerType.GetDefaultLineStyle

Retorna o padrão de atributos de linha para um tipo de marcador personalizado.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (em Microsoft.VisualStudio.TextManager.Interop.dll)

Sintaxe

'Declaração
Function GetDefaultLineStyle ( _
    <OutAttribute> piLineColor As COLORINDEX(), _
    <OutAttribute> piLineIndex As LINESTYLE() _
) As Integer
int GetDefaultLineStyle(
    COLORINDEX[] piLineColor,
    LINESTYLE[] piLineIndex
)
int GetDefaultLineStyle(
    [OutAttribute] array<COLORINDEX>^ piLineColor, 
    [OutAttribute] array<LINESTYLE>^ piLineIndex
)
abstract GetDefaultLineStyle : 
        piLineColor:COLORINDEX[] byref * 
        piLineIndex:LINESTYLE[] byref -> int
function GetDefaultLineStyle(
    piLineColor : COLORINDEX[], 
    piLineIndex : LINESTYLE[]
) : int

Parâmetros

Valor de retorno

Tipo: Int32
Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.

Comentários

COM assinatura

De textmgr.idl:

HRESULT IVsPackageDefinedTextMarkerType::GetDefaultLineStyle(
   [out] COLORINDEX *piLineColor, 
   [out] LINESTYLE *piLineIndex
);

O ambiente chama este método somente se você especificar um valor de MV_LINE ou MV_BORDER para o seu tipo de marcador. Use esse método para especificar o padrão COLORINDEX e XlLineStyle valores desejados. Os seguintes valores são os estilos de linha com suporte no momento:

LI_SOLID— linha simple e sólida. Atualmente somente suportado pelo MV_BORDER.

LI_SQUIGGLY— irregulares de linha. Atualmente somente suportado pelo MV_LINE.

LI_HATCH— linha pontilhada. Atualmente somente suportado pelo MV_BORDER.

Segurança do .NET Framework

Consulte também

Referência

IVsPackageDefinedTextMarkerType Interface

Namespace Microsoft.VisualStudio.TextManager.Interop