Click or drag to resize
DisplayPipelineMeasure2dText Method
Determines screen rectangle that would be drawn to using the Draw2dText(..) function with the same parameters.

Namespace: Rhino.Display
Assembly: RhinoCommon (in RhinoCommon.dll) Version: 5.1.50000.0 (5.0.20693.0)
Syntax
public Rectangle Measure2dText(
	string text,
	Point2d definitionPoint,
	bool middleJustified,
	double rotationRadians,
	int height,
	string fontFace
)

Parameters

text
Type: SystemString
text to measure.
definitionPoint
Type: Rhino.GeometryPoint2d
either lower-left or middle of text.
middleJustified
Type: SystemBoolean
true=middle justified. false=lower-left justified.
rotationRadians
Type: SystemDouble
text rotation in radians
height
Type: SystemInt32
height in pixels (good default is 12)
fontFace
Type: SystemString
font name (good default is "Arial")

Return Value

Type: Rectangle
rectangle in the viewport's screen coordinates on success.
See Also