'Declaration
Public Function GetTextWidth( _ ByVal ImageID As Integer, _ ByVal Text As String, _ ByVal FontName As String, _ ByVal FontSize As Single, _ ByVal FontStyle As GdPictureFontStyle _ ) As Single
public float GetTextWidth( int ImageID, string Text, string FontName, float FontSize, GdPictureFontStyle FontStyle )
public function GetTextWidth( ImageID: Integer; Text: String; FontName: String; FontSize: Single; FontStyle: GdPictureFontStyle ): Single;
public function GetTextWidth( ImageID : int, Text : String, FontName : String, FontSize : float, FontStyle : GdPictureFontStyle ) : float;
Parameters
- ImageID
- GdPicture image identifier.
- Text
- Text to draw.
- FontName
- The name of the font. IE: "Arial".
- FontSize
- The font size in units specified by the FontSetUnit() method.
- FontStyle
- A member of the FontStyle enumeration.
Return Value
The width of the text measured in units specified by the FontSetUnit() method.