次の方法で共有


IVsTextMarkerType.GetDefaultLineStyle Method

Returns the default line attributes for a custom marker type.

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

Syntax

'宣言
Function GetDefaultLineStyle ( _
    <OutAttribute> piLineColor As COLORINDEX(), _
    <OutAttribute> piLineIndex As LINESTYLE() _
) As Integer
'使用
Dim instance As IVsTextMarkerType
Dim piLineColor As COLORINDEX()
Dim piLineIndex As LINESTYLE()
Dim returnValue As Integer

returnValue = instance.GetDefaultLineStyle(piLineColor, _
    piLineIndex)
int GetDefaultLineStyle(
    COLORINDEX[] piLineColor,
    LINESTYLE[] piLineIndex
)
int GetDefaultLineStyle(
    [OutAttribute] array<COLORINDEX>^ piLineColor, 
    [OutAttribute] array<LINESTYLE>^ piLineIndex
)
function GetDefaultLineStyle(
    piLineColor : COLORINDEX[], 
    piLineIndex : LINESTYLE[]
) : int

Parameters

  • piLineColor
    Type: []

    [out] Pointer to the default line color. For a list of piLineColor values, see COLORINDEX.

  • piLineIndex
    Type: []

    [out] Pointer to the default line style. For a list of piLineIndex values, see LINESTYLE.

Return Value

Type: System.Int32

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

Remarks

COM Signature

From textmgr.idl:

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

Permissions

See Also

Reference

IVsTextMarkerType Interface

IVsTextMarkerType Members

Microsoft.VisualStudio.TextManager.Interop Namespace