Font.GetGlyphData Method

Language:

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 Rectangle, _
    ByRef cellInc As Point _
) As Texture
C# public Texture GetGlyphData(
    int glyph,
    out Rectangle blackBox,
    out Point cellInc
);
C++ public:
TextureGetGlyphData(
    int glyph,
    [Out] RectangleblackBox,
    [Out] PointcellInc
);
JScript public function GetGlyphData(
    glyph : int,
    blackBox : Rectangle,
    cellInc : Point
) : Texture;

Parameters

glyph System.Int32
Glyph identifier.
blackBox System.Drawing.Rectangle
Smallest Rectangle Leave 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.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center