RhinoCommon API
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)
Since: 5.10

public Rectangle Measure2dText( string text, Point2d definitionPoint, bool middleJustified, double rotationRadians, int height, string fontFace )
Public Function Measure2dText ( text As String, definitionPoint As Point2d, middleJustified As Boolean, rotationRadians As Double, height As Integer, fontFace As String ) As Rectangle
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: Rectanglerectangle in the viewport's screen coordinates on success.
