Font.GetGlyphData(Int32,Rectangle,Point) Method (Microsoft.DirectX.Direct3D)

Returns information about the placement and orientation of a glyph in a character cell.

Definition

Visual Basic Public Function GetGlyphData( _
    ByVal glyph As Integer, _
    ByRef blackBox As RectangleLeave Site, _
    ByRef cellInc As PointLeave Site _
) As Texture
C# public Texture GetGlyphData(
    int glyph,
    out RectangleLeave Site blackBox,
    out PointLeave Site cellInc
);
C++ public:
TextureGetGlyphData(
    int glyph,
    [Out] RectangleLeave SiteblackBox,
    [Out] PointLeave SitecellInc
);
JScript public function GetGlyphData(
    glyph : int,
    blackBox : RectangleLeave Site,
    cellInc : PointLeave Site
) : Texture;

Parameters

glyph System.Int32
Glyph identifier.
blackBox System.Drawing.Rectangle
Smallest RectangleLeave Site object that completely encloses the glyph (its black box).
cellInc System.Drawing.Point
A Vector2 structure that connects the origin of the current character cell to the origin of the next character cell.

Return Value

Microsoft.DirectX.Direct3D.Texture
A Texture object that contains the glyph.

Remarks

Exceptions

InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.

InvalidDataException

The data is invalid.