Click or drag to resize

CMVIEWMeasureText Method

Compute the bounding rectangle in view units of the text using the current attributes.

Namespace:  GeoEngine.Core.GXNetX
Assembly:  geoengine.core.gxnetx (in geoengine.core.gxnetx.dll) Version: 2024.2.0.25
Syntax
public void MeasureText(
	string text,
	ref double x_min,
	ref double y_min,
	ref double x_max,
	ref double y_max
)

public void MeasureText(
	string text,
	ref double x_min,
	ref double y_min,
	ref double x_max,
	ref double y_max
)

Parameters

text
Type: SystemString
Text string
x_min
Type: SystemDouble
X minimum
y_min
Type: SystemDouble
Y minimum
x_max
Type: SystemDouble
X maximum
y_max
Type: SystemDouble
Y maximum
Remarks
Area will be 0 if error occurred (does not fail). This will return the bounding rectangle as if the text was placed at 0,0 and adjusted according to the current text alignment and angle set for the view. Also see notes for TextSize_MVIEW.
See Also