Click or drag to resize

ObjectTableAddText Method (TextEntity, ObjectAttributes, HistoryRecord, Boolean)

Adds a text object to the document.

Namespace:  Rhino.DocObjects.Tables
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax
public Guid AddText(
	TextEntity text,
	ObjectAttributes attributes,
	HistoryRecord history,
	bool reference
)

Parameters

text
Type: Rhino.GeometryTextEntity
Text object to add.
attributes
Type: Rhino.DocObjectsObjectAttributes

[Missing <param name="attributes"/> documentation for "M:Rhino.DocObjects.Tables.ObjectTable.AddText(Rhino.Geometry.TextEntity,Rhino.DocObjects.ObjectAttributes,Rhino.DocObjects.HistoryRecord,System.Boolean)"]

history
Type: Rhino.DocObjectsHistoryRecord
Object history to save.
reference
Type: SystemBoolean
If reference, then object will not be saved into the 3dm file.

Return Value

Type: Guid
The Id of the newly added object or Guid.Empty on failure.
See Also