ObjectTableAddText Method (String, Plane, Double, String, Boolean, Boolean, ObjectAttributes) |
Adds an annotation text object to the document.
Namespace:
Rhino.DocObjects.Tables
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax public Guid AddText(
string text,
Plane plane,
double height,
string fontName,
bool bold,
bool italic,
ObjectAttributes attributes
)
Public Function AddText (
text As String,
plane As Plane,
height As Double,
fontName As String,
bold As Boolean,
italic As Boolean,
attributes As ObjectAttributes
) As Guid
Parameters
- text
- Type: SystemString
Text string. - plane
- Type: Rhino.GeometryPlane
Plane of text. - height
- Type: SystemDouble
Height of text. - fontName
- Type: SystemString
Name of FontFace. - bold
- Type: SystemBoolean
Bold flag. - italic
- Type: SystemBoolean
Italic flag. - attributes
- Type: Rhino.DocObjectsObjectAttributes
Attributes that will be linked with the object.
Return Value
Type:
GuidThe Guid of the newly added object or Guid.Empty on failure.
See Also