Compartilhar via


IVsAtomicTextProvider.GetAtomGlyphWidth Method

Gets the width of the glyph.

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

Syntax

'Declaração
Function GetAtomGlyphWidth ( _
    iPixSpaceWidth As Integer, _
    <OutAttribute> ByRef pGlyphPix As Integer _
) As Integer
int GetAtomGlyphWidth(
    int iPixSpaceWidth,
    out int pGlyphPix
)
int GetAtomGlyphWidth(
    [InAttribute] int iPixSpaceWidth, 
    [OutAttribute] int% pGlyphPix
)
abstract GetAtomGlyphWidth : 
        iPixSpaceWidth:int * 
        pGlyphPix:int byref -> int 
function GetAtomGlyphWidth(
    iPixSpaceWidth : int, 
    pGlyphPix : int
) : int

Parameters

  • iPixSpaceWidth
    Type: System.Int32
    [in] The width of a pixel.
  • pGlyphPix
    Type: System.Int32%
    [out] The width of the glyph in pixels.

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 textmgr2.idl:

HRESULT IVsAtomicTextProvider::GetAtomGlyphWidth(
   [in] long iPixSpaceWidth,
   [out] long *pGlyphPix
);

.NET Framework Security

See Also

Reference

IVsAtomicTextProvider Interface

Microsoft.VisualStudio.TextManager.Interop Namespace