User Tools

Site Tools


api:dk11:delphi:fmx.giscontrollegend.tgis_controllegend.controlstylegettextextent_boolean_string

Table of Contents



TGIS_ControlLegend.ControlStyleGetTextExtent method

DK for Delphi | FMX.GisControlLegend.TGIS_ControlLegend.ControlStyleGetTextExtent | Constructors | Methods | Properties | Events

Gets the text extent.

Available also on: .NET WinForms | Java.

Syntax

Implements IGIS_LegendParent.ControlStyleGetTextExtent.

// Delphi
protected
  function ControlStyleGetTextExtent(
    const _selected : Boolean;
    const _text : String
  ) : TPoint;
// C++ Builder
protected:
  TPoint* ControlStyleGetTextExtent(
    const bool _selected,
    const UnicodeString _text
  );

Parameters

Name Type Description
_selected Boolean True if the node is selected.
_text String Text to measure.

Result

Type Description
TPoint Text extent in pixels.

Remarks

Do not call this method directly. Method is only for internal Legend/Parent communication.

2026/08/30 01:46

Page Tools