Condividi tramite


IVsTextTipData.GetTipFontInfo Method

Gets font information for the tip text.

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

Syntax

'Dichiarazione
Function GetTipFontInfo ( _
    cChars As Integer, _
    <OutAttribute> pdwFontAttr As UInteger() _
) As Integer
int GetTipFontInfo(
    int cChars,
    uint[] pdwFontAttr
)
int GetTipFontInfo(
    [InAttribute] int cChars, 
    [OutAttribute] array<unsigned int>^ pdwFontAttr
)
abstract GetTipFontInfo : 
        cChars:int * 
        pdwFontAttr:uint32[] byref -> int 
function GetTipFontInfo(
    cChars : int, 
    pdwFontAttr : uint[]
) : int

Parameters

  • cChars
    Type: System.Int32
    [in] The number of characters to check for font information.
  • pdwFontAttr
    Type: array<System.UInt32[]
    [out] The font attribute for the text characters.

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 IVsTextTipData::GetTipFontInfo(
   [in] long cChars,
   [out, size_is(cChars)] ULONG *pdwFontAttr
); 

Note

*pdwFontAttr will already have been memset to zeroes, so you can set only the indices that are not normal

.NET Framework Security

See Also

Reference

IVsTextTipData Interface

Microsoft.VisualStudio.TextManager.Interop Namespace