IVsPackageDefinedTextMarkerType.GetDefaultFontFlags Method

Specifies additional modifications to text appearance determined by the marker.

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

Syntax

声明
Function GetDefaultFontFlags ( _
    <OutAttribute> ByRef pdwFontFlags As UInteger _
) As Integer
用法
Dim instance As IVsPackageDefinedTextMarkerType
Dim pdwFontFlags As UInteger
Dim returnValue As Integer

returnValue = instance.GetDefaultFontFlags(pdwFontFlags)
int GetDefaultFontFlags(
    out uint pdwFontFlags
)
int GetDefaultFontFlags(
    [OutAttribute] unsigned int% pdwFontFlags
)
abstract GetDefaultFontFlags : 
        pdwFontFlags:uint32 byref -> int 
function GetDefaultFontFlags(
    pdwFontFlags : uint
) : int

Parameters

  • pdwFontFlags
    Type: System.UInt32%
    [out] Pointer to additional font options for markers. For a list of pdwFontFlags values, see FONTFLAGS.

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 IVsPackageDefinedTextMarkerType::GetDefaultFontFlags(
   [out] DWORD *pdwFontFlags
);

Use this method to allow the marker to specify modifications to text appearance such as boldface (FF_BOLD) or strikethrough (FF_STRIKETHROUGH). If you do not want your markers to force text bold or strikethrough, return FF_DEFAULT. A value of FF_DEFAULT is generally recommended.

.NET Framework Security

See Also

Reference

IVsPackageDefinedTextMarkerType Interface

IVsPackageDefinedTextMarkerType Members

Microsoft.VisualStudio.TextManager.Interop Namespace