Click or drag to resize

ViewTableAddPageView Method (String, Boolean)

Constructs a new page view with a given title and, at the same time, adds it to the list.

Namespace:  Rhino.DocObjects.Tables
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public RhinoPageView AddPageView(
	string title,
	bool setActive
)

Parameters

title
Type: SystemString
If null or empty, a name will be generated as "Page #" where # is the largest page number.
setActive
Type: SystemBoolean
If true, the new page view becomes the active view. If false, the view that was active before this call remains the active view.

Return Value

Type: RhinoPageView
The newly created page view on success; or null on error.
Remarks
On Mac, building a page view's window is main-thread work. If setActive is true and this is called from another thread, the page view is created but may not have become the active view by the time this returns.
See Also