GdipDrawString

 

 

Description

Draws a string based on a font, a layout rectangle, and a format.

Syntax

GpStatus WINGDIPAPI GdipDrawString(

    GpGraphics *graphics,

    GDIPCONST WCHAR *string,

    INT length,

    GDIPCONST GpFont *font,

    GDIPCONST RectF *layoutRect,

    GDIPCONST GpStringFormat *stringFormat,

    GDIPCONST GpBrush *brush

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawString ( _

    BYVAL graphics AS DWORD, _

    BYVAL pString AS STRING, _

    BYVAL length AS LONG, _

    BYVAL pFont AS DWORD, _

    BYREF layoutRect AS RectF, _

    BYVAL stringFormat AS DWORD, _

    BYVAL brush AS DWORD _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

string

[in] Pointer to a wide-character string to be drawn.

length

[in] Long integer value that specifies the number of characters in the string array. The length parameter can be set to 1 if the string is null terminated.

font

[in] Pointer to a Font object that specifies the font attributes (the family name, the size, and the style of the font) to use.

layoutRect

[in] Reference to a rectangle that bounds the string.

stringFormat

[in] Pointer to a StringFormat object that specifies text layout information and display manipulations to be applied to the string.

brush

[in] Pointer to a Brush object that is used to fill the string.

 

Valid HTML 4.01 Transitional