IWorksheet |
public interface IWorksheetController : IMVCANController, IMVCAController, IMVCController, IDisposable, IApplyController
The IWorksheetController type exposes the following members.
| Name | Description | |
|---|---|---|
| AreColumnsOrRowsSelected | Returns true if one or more columns, rows or property columns or rows are selected. | |
| AreDataCellsSelected | Returns true if one or more data columns or rows are selected. | |
| ArePropertyCellsSelected | Returns true if one or more property columns or rows are selected. | |
| DataTable | This returns the Table that is managed by this controller. | |
| EnableCopy | Gets a value indicating whether copy is enabled. | |
| EnableCut | Gets a value indicating whether cut is enabled. | |
| EnableDelete | Gets a value indicating whether delete is enabled. | |
| EnablePaste | Gets a value indicating whether paste is enabled. | |
| EnableSelectAll | Gets a value indicating whether select all is enabled. | |
| ModelObject |
Gets the model (document) that this controller manages.
(Inherited from IMVCController) | |
| SelectedDataColumns | Returns the currently selected data columns. | |
| SelectedDataRows | Returns the currently selected data rows. | |
| SelectedPropertyColumns | Returns the currently selected property columns. | |
| SelectedPropertyRows | Returns the currently selected property rows if property cells are selected alone. Otherwise, the SelectedColumns property is returned. | |
| UseDocumentCopy |
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) | |
| VerticalScrollPosition | 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. | |
| ViewObject |
Gets or sets the GUI element that shows the model to the user.
(Inherited from IMVCController) | |
| WorksheetLayout | Gets the worksheet layout managed by this controller. |
| Name | Description | |
|---|---|---|
| Apply |
Called when the user input has to be applied to the document being controlled. Returns if apply is successful.
(Inherited from IApplyController) | |
| ClearAllSelections | Clears all selections. | |
| Copy | Copies the current selection. | |
| Cut | Cuts the current selection. | |
| Delete | Deletes the current selection. | |
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable) | |
| InitializeDocument |
Initializes the controller with the document.
(Inherited from IMVCANController) | |
| Paste | Pastes clipboard contents. | |
| Revert |
Try to revert changes to the model, i.e. restores the original state of the model.
(Inherited from IApplyController) | |
| SelectAll | Selects all cells. | |
| TableAreaInvalidate | Forces redraw of the table. |