Click or drag to resize

UtilitiesShowContentNewExistingBrowser Method

Shows the Content New / Existing Browser to allow the user to select a new or existing content, or multiple contents.

Namespace:  Rhino.Render
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntax
public static UtilitiesContentNewExistingResults ShowContentNewExistingBrowser(
	RhinoDoc doc,
	Guid defaultType,
	Guid defaultInstanceId,
	RenderContentKind kinds,
	UtilitiesContentNewExistingFlags flags,
	string presetCategory,
	IEnumerable<string> categories,
	IEnumerable<Guid> types,
	out Guid[] contents
)

Parameters

doc
Type: RhinoRhinoDoc
A Rhino document.
defaultType
Type: SystemGuid
The content type that will be initially selected in the 'New' tab.
defaultInstanceId
Type: SystemGuid
The content instance that will be initially selected in the 'Existing' tab.
kinds
Type: Rhino.RenderRenderContentKind
Semicolon-delimited string specifying which content kinds will be displayed.
flags
Type: Rhino.RenderUtilitiesContentNewExistingFlags
Flags controlling the browser (tabs to hide, type of selection).
presetCategory
Type: SystemString
Specifies the category to preset in the drop-down list on the 'New' tab. If this string is empty, the preset category will be 'All'.
categories
Type: System.Collections.GenericIEnumerableString
Specifies the categories to display. Render contents that do not belong to one of these categories will not be listed. If this array is empty, all render contents from all categories will be listed.
types
Type: System.Collections.GenericIEnumerableGuid
Specifies content types to display. Contents that are not one of these types will not be listed. If this array is empty, all content types will be listed.
contents
Type: SystemGuid
Array of Guid(s) of the chosen item(s). Depending on the result, this can accept type id(s) of content type(s) or instance id(s) of existing content(s).

Return Value

Type: UtilitiesContentNewExistingResults
The result of displaying the browser.
See Also