RhinoCommon API
UtilitiesChangeContentType Method |
Changes the type of a content. This deletes the content and creates a replacement
of the specified type allowing the caller to decide about harvesting.
Namespace: Rhino.Render
Assembly: RhinoCommon (in RhinoCommon.dll)
public static RenderContent ChangeContentType( RenderContent oldContent, Guid newType, bool harvestParameters )
Public Shared Function ChangeContentType ( oldContent As RenderContent, newType As Guid, harvestParameters As Boolean ) As RenderContent
Parameters
- oldContent
- Type: Rhino.RenderRenderContent
oldContent is the old content which is deleted. - newType
- Type: SystemGuid
The type of content to replace pOldContent with. - harvestParameters
- Type: SystemBoolean
Determines whether or not parameter harvesting will be performed.
Return Value
Type: RenderContentA new persistent render content.