RhinoCommon API
DisplayPipelineDraw2dText Method (String, Color, Point3d, Boolean, Int32, String) |
Draws 2D text on the viewport.
Namespace: Rhino.Display
Assembly: RhinoCommon (in RhinoCommon.dll)

public void Draw2dText( string text, Color color, Point3d worldCoordinate, bool middleJustified, int height, string fontface )
Public Sub Draw2dText ( text As String, color As Color, worldCoordinate As Point3d, middleJustified As Boolean, height As Integer, fontface As String )
Parameters
- text
- Type: SystemString
The string to draw. - color
- Type: System.DrawingColor
Text color. - worldCoordinate
- Type: Rhino.GeometryPoint3d
Definition point in world coordinates. - middleJustified
- Type: SystemBoolean
If true text is centered around the definition point, otherwise it is lower-left justified. - height
- Type: SystemInt32
Height in pixels (good default is 12). - fontface
- Type: SystemString
Font name (good default is "Arial").

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.8