| 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.GXNetXAssembly: 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
)
Public Sub MeasureText (
text As String,
ByRef x_min As Double,
ByRef y_min As Double,
ByRef x_max As Double,
ByRef y_max As Double
)
public:
void MeasureText(
String^ text,
double% x_min,
double% y_min,
double% x_max,
double% y_max
)
member MeasureText :
text : string *
x_min : float byref *
y_min : float byref *
x_max : float byref *
y_max : float byref -> unit
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