Click or drag to resize

MarkupTableCreate Method (RhinoView, IEnumerableGeometryBase)

Adds a markup and its content without a markup session, as one undo step. The geometry is added to the document as the markup's content, and the view, captured before it is added, becomes the background. Any geometry type is allowed. It should lie on a plane parallel to the view, as markup tools draw it, but this is not enforced.

Namespace:  Rhino.DocObjects.Tables
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntax
public int Create(
	RhinoView view,
	IEnumerable<GeometryBase> geometry
)

Parameters

view
Type: Rhino.DisplayRhinoView
The view the markup is made in. Its viewport is stored with the markup.
geometry
Type: System.Collections.GenericIEnumerableGeometryBase
The markup's content. Copies are added to the document.

Return Value

Type: Int32
Index of the new markup, or -1 on failure, including while the document is in markup mode.
See Also