MeasureTextBox Method (GdPictureImaging)
In This Topic
Measures the specified string when drawn with the specified Font and the specified alignment.
Syntax
'Declaration
Public Function MeasureTextBox( _
ByVal As Integer, _
ByVal As String, _
ByRef As Single, _
ByRef As Single, _
ByRef As Single, _
ByRef As Single, _
ByVal As Single, _
ByVal As TextAlignment, _
ByVal As GdPictureFontStyle, _
ByVal As String, _
ByVal As Boolean, _
ByRef As Integer, _
ByRef As Integer _
) As GdPictureStatus
public GdPictureStatus MeasureTextBox(
int ,
string ,
ref float ,
ref float ,
ref float ,
ref float ,
float ,
TextAlignment ,
GdPictureFontStyle ,
string ,
bool ,
ref int ,
ref int
)
public function MeasureTextBox(
: Integer;
: String;
var : Single;
var : Single;
var : Single;
var : Single;
: Single;
: TextAlignment;
: GdPictureFontStyle;
: String;
: Boolean;
var : Integer;
var : Integer
): GdPictureStatus;
public function MeasureTextBox(
: int,
: String,
: float,
: float,
: float,
: float,
: float,
: TextAlignment,
: GdPictureFontStyle,
: String,
: boolean,
: int,
: int
) : GdPictureStatus;
public: GdPictureStatus MeasureTextBox(
int ,
string* ,
ref float ,
ref float ,
ref float ,
ref float ,
float ,
TextAlignment ,
GdPictureFontStyle ,
string* ,
bool ,
ref int ,
ref int
)
public:
GdPictureStatus MeasureTextBox(
int ,
String^ ,
float% ,
float% ,
float% ,
float% ,
float ,
TextAlignment ,
GdPictureFontStyle ,
String^ ,
bool ,
int% ,
int%
)
Parameters
- ImageID
- GdPicture image identifier.
- Text
- Text to draw.
- Left
- Specifies/Receives the x-coordinate of the upper-left corner of the text box.
- Top
- Specifies/Receives the y-coordinate of the upper-left corner of the text box.
- Width
- Specifies/Receives the width, in pixels, of the text box.
- Height
- Specifies/Receives the height, in pixels, of the text box.
- FontSize
- The font size in units specified by the FontSetUnit() method.
- Alignment
- A member of the TextAlign enumeration.
- FontStyle
- A member of the FontStyle enumeration.
- FontName
- The name of the font. IE: "Arial".
- AntiAlias
- Set to True to apply the Antialiasing algorithm else False.
- CharactersFitted
- Receives the number of characters that actually fit into the layout rectangle.
- LinesFilled
- Receives the number of lines that fit into the layout rectangle.
See Also