User Tools

Site Tools


api:dk11:delphi:vcl.gisgdiplus.tgis_gdipgraphics.measurestring_widestring_tgis_gdipfont_integer_tgis_gdipstringformat

Table of Contents

TGIS_GdipGraphics.MeasureString method

DK11 for Delphi | VCL.GisGdiPlus.TGIS_GdipGraphics.MeasureString | Constructors | Fields | Methods | Properties

Measure the specified string.

Syntax

// Delphi
public
  function MeasureString(
    _text : WideString;
    _font : TGIS_GdipFont;
    _width : Integer;
    _stringFormat : TGIS_GdipStringFormat
  ) : TGIS_GdipSizeF;
// C++ Builder
public:
  TGIS_GdipSizeF* MeasureString(
    WideString* _text,
    TGIS_GdipFont* _font,
    int _width,
    TGIS_GdipStringFormat* _stringFormat
  );

Parameters

Name Type Description
_text WideString string to measure
_font TGIS_GdipFont font that defines text format
_width Integer maximum width of the string
_stringFormat TGIS_GdipStringFormat formatting information

Result

Type Description
TGIS_GdipSizeF Size of the string.
2017/09/04 11:18