'Declaration
Public Function GetTextWidth( _ ByVal ImageID As Integer, _ ByVal Text As String, _ ByVal FontName As String, _ ByVal FontSize As Single, _ ByVal FontStyle As FontStyle _ ) As Single
public float GetTextWidth( int ImageID, string Text, string FontName, float FontSize, FontStyle FontStyle )
public function GetTextWidth( ImageID: Integer; Text: String; FontName: String; FontSize: Single; FontStyle: FontStyle ): Single;
public function GetTextWidth( ImageID : int, Text : String, FontName : String, FontSize : float, FontStyle : FontStyle ) : 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.