Click or drag to resize

RenderContentCreate Method (Type, RenderContent, String, RenderContentShowContentChooserFlags, RhinoDoc)

Constructs a new content of the specified type and add it to the persistent content list. This function cannot be used to create temporary content that you delete after use. Content created by this function is owned by RDK and appears in the content editor. To create a temporary content which is owned by you, call RenderContentType.NewContentFromType().

Namespace:  Rhino.Render
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.1
public static RenderContent Create(
	Type type,
	RenderContent parent,
	string childSlotName,
	RenderContentShowContentChooserFlags flags,
	RhinoDoc doc


Type: SystemType
is the type of the content to add.
Type: Rhino.RenderRenderContent
Parent is the parent content. If not NULL, this must be an RDK-owned content that is in the persistent content list (either top-level or child). The new content then becomes its child. If NULL, the new content is added to the top-level content list instead.
Type: SystemString
ChildSlotName is the unique child identifier to use for the new content when creating it as a child of pParent (i.e., when pParent is not NULL)
Type: Rhino.RenderRenderContentShowContentChooserFlags
Options for the tab.
Type: RhinoRhinoDoc
The current Rhino document.

Return Value

Type: RenderContent
A new persistent render content.
See Also