Click or drag to resize

IWorksheetController Interface

Provides the controller contract for worksheet views.

Namespace: Altaxo.Gui.Worksheet.Viewing
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public interface IWorksheetController : IMVCANController, 
	IMVCAController, IMVCController, IDisposable, IApplyController

The IWorksheetController type exposes the following members.

Properties
 NameDescription
Public propertyAreColumnsOrRowsSelected Returns true if one or more columns, rows or property columns or rows are selected.
Public propertyAreDataCellsSelected Returns true if one or more data columns or rows are selected.
Public propertyArePropertyCellsSelected Returns true if one or more property columns or rows are selected.
Public propertyDataTable This returns the Table that is managed by this controller.
Public propertyEnableCopy Gets a value indicating whether copy is enabled.
Public propertyEnableCut Gets a value indicating whether cut is enabled.
Public propertyEnableDelete Gets a value indicating whether delete is enabled.
Public propertyEnablePaste Gets a value indicating whether paste is enabled.
Public propertyEnableSelectAll Gets a value indicating whether select all is enabled.
Public propertyModelObject Gets the model (document) that this controller manages.
(Inherited from IMVCController)
Public propertySelectedDataColumns Returns the currently selected data columns.
Public propertySelectedDataRows Returns the currently selected data rows.
Public propertySelectedPropertyColumns Returns the currently selected property columns.
Public propertySelectedPropertyRows Returns the currently selected property rows if property cells are selected alone. Otherwise, the SelectedColumns property is returned.
Public propertyUseDocumentCopy Sets whether or not a copy of the document is used. If set to true, a copy of the document is used, so if the controller is not applied, all changes can be reverted. If set to false, no copy must be made. The document is directly changed by the controller, and changes cannot be reverted. Use the last option if a controller higher in the hierarchy has already made a copy of the document.
(Inherited from IMVCANController)
Public propertyVerticalScrollPosition The vertical scroll position is defined as following: If 0 (zero), the data row 0 is the first visible line (after the column header). If positive, the data row with the number of VertScrollPos is the first visible row. If negative, the property column with index PropertyColumnCount+VertScrollPos is the first visible line.
Public propertyViewObject Gets or sets the GUI element that shows the model to the user.
(Inherited from IMVCController)
Public propertyWorksheetLayout Gets the worksheet layout managed by this controller.
Top
Methods
 NameDescription
Public methodApply Called when the user input has to be applied to the document being controlled. Returns if apply is successful.
(Inherited from IApplyController)
Public methodClearAllSelections Clears all selections.
Public methodCopy Copies the current selection.
Public methodCut Cuts the current selection.
Public methodDelete Deletes the current selection.
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable)
Public methodInitializeDocument Initializes the controller with the document.
(Inherited from IMVCANController)
Public methodPaste Pastes clipboard contents.
Public methodRevert Try to revert changes to the model, i.e. restores the original state of the model.
(Inherited from IApplyController)
Public methodSelectAll Selects all cells.
Public methodTableAreaInvalidate Forces redraw of the table.
Top
See Also