| CMVIEWMeasureText Method |
Compute the bounding rectangle in view units of the text using the current attributes.
Available since Oasis montaj version: 6.0.0
License: Available to anyone.
Namespace: GeoEngine.Core.GXNetAssembly: geoengine.core.gxnet (in geoengine.core.gxnet.dll)
Notes
Area will be 0 if error occured (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 str1,
ref double d2,
ref double d3,
ref double d4,
ref double d5
)
Public Sub MeasureText (
str1 As String,
ByRef d2 As Double,
ByRef d3 As Double,
ByRef d4 As Double,
ByRef d5 As Double
)
public:
void MeasureText(
String^ str1,
double% d2,
double% d3,
double% d4,
double% d5
)
member MeasureText :
str1 : string *
d2 : float byref *
d3 : float byref *
d4 : float byref *
d5 : float byref -> unit
Parameters
- str1
- Type: SystemString
Text string - d2
- Type: SystemDouble
X minimum - d3
- Type: SystemDouble
Y minimum - d4
- Type: SystemDouble
X maximum - d5
- Type: SystemDouble
Y maximum
See Also