User Tools

Site Tools


api:dk11:delphi:gisrendererabstract.tgis_rendererabstract.canvastextextent_string

Table of Contents

TGIS_RendererAbstract.CanvasTextExtent method

DK11 for Delphi | GisRendererAbstract.TGIS_RendererAbstract.CanvasTextExtent | Fields | Methods | Properties

Calculate text EM value for a currently selected CanvasFont.

Available also on: .NET | Java | ActiveX.

Syntax

// Delphi
public
  function CanvasTextExtent(
    const _text : String
  ) : TPoint; virtual; abstract;
// C++ Builder
public:
  virtual TPoint* CanvasTextExtent(
    const UnicodeString _text
  ) = 0;

Parameters

Name Type Description
_text String text for which extent will be calculated

Result

Type Description
TPoint Text extent in pixels.
2018/02/17 00:10