Click or drag to resize
CMVIEWMeasureText Method
Compute the bounding rectangle in view units of the text using the current attributes.

Available since Oasis montaj version: 6.0
License: Available to anyone.  

Namespace: GeoEngine.Core.GXNetX
Assembly: geoengine.core.gxnetx (in geoengine.core.gxnetx.dll)
Notes
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.
Syntax
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
See Also