Click or drag to resize

ViewTableAddPageView Method (String, Double, Double, Boolean)

Constructs a new page view with a given title and size 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,
	double pageWidth,
	double pageHeight,
	bool setActive
)

Parameters

title
Type: SystemString
If null or empty, a name will be generated as "Page #" where # is the largest page number.
pageWidth
Type: SystemDouble
The page total width.
pageHeight
Type: SystemDouble
The page total height.
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