Class CadViewManagerRequest
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
The View Manager of VIEW and its New View dialog, as data their command and the window share: the named views, the one chosen, the view on screen, and what New View is given. Edit Boundaries… and New View's Define window close the dialog with SelectObjects and their words in Pick: the command asks two corners on the command line, then shows the dialog again. New, Delete, Update Layers and the properties change the drawing at once; Set Current restores the view chosen on Apply or OK; Cancel takes every change back, the whole one undo step.
public sealed class CadViewManagerRequest
- Inheritance
-
CadViewManagerRequest
- Inherited Members
Properties
- Action
Gets or sets what the dialog was closed with: OK, Cancel or Select objects; Cancel until set.
- CurrentView
Gets the view on screen, as a row named Current; null where the window shows none.
- Document
Gets the document.
- IsNewViewOpen
Gets or sets whether New View is open, so that it is shown again after its Define window.
- Message
Gets what the last change said where it was refused; null where it was made.
- NewLayerSnapshot
Gets or sets whether New View saves a layer snapshot with the view; true until set.
- NewName
Gets or sets the name New View gives.
- NewWindow
Gets or sets the window New View's Define window took; null for Current display.
- Pick
Gets or sets the button the dialog was closed with for the command line: Boundaries or NewWindow.
- Selected
Gets or sets the name of the view chosen; null for Current, the view on screen.
- ToRestore
Gets or sets the view Set Current chose, restored on Apply or OK; null for none.
- Views
Gets the named views, model views then layout views, each in ordinal order of their names, letters of either case alike.
Methods
- Apply()
Apply: the view Set Current chose restored now, the dialog left open.
- Delete()
Delete: the view chosen and its layer snapshot taken out.
- New(bool)
New View's OK: the view saved under NewName, of NewWindow or the display, with its layer snapshot where asked.
- Rename(string)
The view chosen given a new name.
- Resize(double, double)
The view chosen given a height and a width about its centre.
- UpdateLayers()
Update Layers: the layers as they stand saved as the view chosen's layer snapshot.