Click or drag to resize

WorksheetController Class

Default controller which implements IWorksheetController.
Inheritance Hierarchy
SystemObject
  Altaxo.Gui.WorkbenchAbstractViewContent
    Altaxo.Gui.Worksheet.ViewingWorksheetController

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

The WorksheetController type exposes the following members.

Constructors
 NameDescription
Public methodWorksheetController(DataTable)Initializes a new instance of the WorksheetController class
Public methodWorksheetController(WorksheetLayout) Creates a WorksheetController which shows the table data using the specified layout.
Public methodWorksheetController(WorksheetViewLayout)Initializes a new instance of the WorksheetController class
Top
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 propertyCloseCommand
(Inherited from AbstractViewContent)
Public propertyCloseWithSolution
(Inherited from AbstractViewContent)
Public propertyContentId Gets or sets the content identifier. Here, the content identifier is calculated of the reference hash of the document. Setting is not implemented here.
(Inherited from AbstractViewContent)
Public propertyDataTable 
Public propertyEnableCopy 
Public propertyEnableCut 
Public propertyEnableDelete 
Public propertyEnablePaste 
Public propertyEnableSelectAll 
Public propertyFirstVisibleColumn 
Public propertyFirstVisiblePropertyColumn 
Public propertyFirstVisibleTableRow 
Public propertyFullyVisibleColumns 
Public propertyFullyVisiblePropertyColumns 
Public propertyFullyVisibleTableRows 
Public propertyHorzScrollMaximum 
Public propertyHorzScrollPos 
Public propertyIconSource
(Inherited from AbstractViewContent)
Public propertyInfoTip
(Inherited from AbstractViewContent)
Public propertyInitiallyFocusedControl
(Inherited from AbstractViewContent)
Public propertyIsActive Gets or sets a value indicating whether the view of this instance is active in the UI.
(Inherited from AbstractViewContent)
Public propertyIsContentVisible Gets a value indicating whether the content of this document window is visible (it is if either IsActive or IsSelected is visible.
(Inherited from AbstractViewContent)
Public propertyIsDirty
(Inherited from AbstractViewContent)
Public propertyIsDisposed
(Inherited from AbstractViewContent)
Public propertyIsDisposeInProgress
(Inherited from AbstractViewContent)
Public propertyIsReadOnly Gets if the view content is read-only (can be saved only when choosing another file name).
(Inherited from AbstractViewContent)
Public propertyIsSelected Gets or sets a value indicating whether the view of this instance is selected (e.g. inside its container).
(Inherited from AbstractViewContent)
Public propertyIsViewOnly Gets if the view content is view-only (cannot be saved at all).
(Inherited from AbstractViewContent)
Public propertyIsVisible Gets or sets the visibility of the document. If false, the document tab header is not visible (but the document itself maybe visible !). If true, the document tab header is visible (if it fits in the bar), and the document is visible, if it is selected, too.
(Inherited from AbstractViewContent)
Public propertyLastFullyVisibleColumn 
Public propertyLastFullyVisiblePropertyColumn 
Public propertyLastFullyVisibleTableRow 
Public propertyLastVisibleTableRow 
Public propertyModelObject
(Overrides AbstractViewContentModelObject)
Public propertyRemainingEnabledPropertyColumnsReturns the remaining number of property columns that could be shown below the current scroll position.
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. If not selected alone, the SelectedColumn property is returned.
Public propertyServices
(Inherited from AbstractViewContent)
Public propertyTableAreaHeight 
Public propertyTableAreaWidth 
Public propertyTitle Gets/Sets the title of the current tab page. This value will be passed through the string parser before being displayed.
(Inherited from AbstractViewContent)
Public propertyTotalEnabledPropertyColumnsReturns number of property columns that are enabled for been shown on the grid.
Public propertyUseDocumentCopy 
Public propertyVerticalPositionOfFirstVisibleDataRow This returns the vertical position of the first visible data row.;
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 propertyVertScrollMaximum 
Public propertyViewObject
(Overrides AbstractViewContentViewObject)
Public propertyVisibleColumns 
Public propertyVisiblePropertyColumns 
Public propertyVisibleTableRows 
Public propertyWorksheetLayout 
Top
Methods
 NameDescription
Public methodAdjustXScrollBarMaximum 
Public methodAdjustXScrollBarViewPortSizeAdjusts the X scroll bar view port size (=size of the thumb). Should be called after the XScrollbarMaximum is adusted or when the width of the columns changed considerably. Here, we want to avoid that the thumb size changed when we scroll through the worksheet. Thus, we calculate a average value for the thumb size that is relation of the table area width and the total width of all data columns.
Public methodAdjustYScrollBarMaximum 
Public methodApply 
Public methodBuildNavPoint
(Inherited from AbstractViewContent)
Protected methodCanClose
(Inherited from AbstractViewContent)
Public methodClearAllSelections Clears all selections of columns, rows or property columns.
Public methodClearIsDirty
(Inherited from AbstractViewContent)
Public methodCopy 
Public methodCreateResizingPositions 
Public methodCut 
Public methodDelete 
Public methodDisposeReleases all resources used by the WorksheetController
(Overrides AbstractViewContentDispose)
Public methodEhPropertyDataChanged 
Public methodEhTable_Changed 
Public methodEhTableDataChanged 
Protected methodEhTitleLocalizationChanged
(Inherited from AbstractViewContent)
Public methodEhView_HorzScrollBarScroll 
Public methodEhView_KeyDown 
Public methodEhView_TableAreaMouseClick 
Public methodEhView_TableAreaMouseDoubleClick 
Public methodEhView_TableAreaMouseDown 
Public methodEhView_TableAreaMouseMove 
Public methodEhView_TableAreaMouseUp 
Public methodEhView_TableAreaMouseWheel Handles the mouse wheel event.
Public methodEhView_TableAreaSizeChanged 
Public methodEhView_VertScrollBarScroll 
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetDataColumnStyle Retrieves the column style for the data column with index i.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetPropertyColumnStyle Retrieves the column style for the property column with index i.
Public methodGetService(Type)
(Inherited from AbstractViewContent)
Public methodGetServiceT
(Inherited from AbstractViewContent)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInitializeDocument 
Protected methodInternalInitializeWorksheetLayout 
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodNavigateCellEdit NavigateCellEdit moves the cell edit control to the next cell
Protected methodNavigatePropertyCellEdit NavigatePropertyCellEdit moves the cell edit control to the next cell
Protected methodNavigateTableCellEdit NavigateTableCellEdit moves the cell edit control to the next cell
Public methodNotifyContentIdChanged Can be used to notify the view content that the ContentId maybe has changed.
(Inherited from AbstractViewContent)
Protected methodOnClose
(Inherited from AbstractViewContent)
Public methodOnIsDirtyChanged
(Inherited from AbstractViewContent)
Protected methodOnLeftClickDataCell 
Protected methodOnLeftClickDataColumnHeader 
Protected methodOnLeftClickDataRowHeader 
Protected methodOnLeftClickOutsideAll 
Protected methodOnLeftClickPropertyCell 
Protected methodOnLeftClickPropertyColumnHeader 
Protected methodOnLeftClickTableHeader 
Protected methodOnPropertyChanged
(Inherited from AbstractViewContent)
Protected methodOnRightClickDataCell 
Protected methodOnRightClickDataColumnHeader 
Protected methodOnRightClickDataRowHeader 
Protected methodOnRightClickOutsideAll 
Protected methodOnRightClickPropertyCell 
Protected methodOnRightClickPropertyColumnHeader 
Protected methodOnRightClickTableHeader 
Public methodPaste 
Public methodRevert Try to revert changes to the model, i.e. restores the original state of the model.
Public methodSelectAll 
Protected methodSetCachedNumberOfDataColumns 
Protected methodSetCachedNumberOfDataRows 
Protected methodSetCachedNumberOfPropertyColumns 
Public methodSetDirty
(Inherited from AbstractViewContent)
Public methodSetDisposeInProgress Announces that this view content is about to be disposed very soon. The view content should remain passiv (e.g. should not react to events any more), but should not release its resources yet (this is done later in Dispose).
(Inherited from AbstractViewContent)
Protected methodSetLocalizedInfoTip Sets a localized info tip that will update automatically when the language changes.
(Inherited from AbstractViewContent)
Protected methodSetLocalizedTitle Sets a localized title that will update automatically when the language changes.
(Inherited from AbstractViewContent)
Protected methodSetMemberVariablesToDefault Set the member variables to default values. Intended only for use in constructors and deserialization code.
Protected methodSetScrollPositionTo SetScrollPositions only sets the scroll positions, and not Invalidates the Area!
Public methodTableAreaInvalidate 
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
Fields
 NameDescription
Protected field_cellEdit_IsArmed 
Protected field_cellEdit_IsModified 
Protected field_columnWidthResizingPositionsList of x positions where the horizontal resizing cursor should be shown in order to resize the columns.
Protected field_columnWidthResizingPositionsFirstColumnIndexIndex of the first data column that was shown when the list of resizing positions was created.
Protected field_isActive
(Inherited from AbstractViewContent)
Protected field_isSelected
(Inherited from AbstractViewContent)
Protected field_isVisible
(Inherited from AbstractViewContent)
Protected field_lastSelectionTypeWhich selection was done last: selection (i) a data column, (ii) a data row, or (iii) a property column.
Protected field_numberOfPropertyCols Cached number of property columns.
Protected field_numberOfTableCols Cached number of table columns.
Protected field_numberOfTableRows Cached number of table rows.
Protected field_selectedDataColumns Holds the indizes to the selected data columns.
Protected field_selectedDataRows Holds the indizes to the selected rows.
Protected field_selectedPropertyColumns Holds the indizes to the selected property columns.
Protected field_selectedPropertyRows Holds the indizes to the selected property rows (but only in case property cells are selected alone).
Protected field_tableHolds the data table cached from the layout.
Protected field_title
(Inherited from AbstractViewContent)
Protected field_titleToBeLocalized
(Inherited from AbstractViewContent)
Protected field_weakEventHandlerDataColumnChanged 
Protected field_weakEventHandlerForLayout_TunneledEvent 
Protected field_weakEventHandlerForTable_Changed 
Protected field_weakEventHandlerForTable_TunneledEvent 
Protected field_weakEventHandlerPropertyColumnChanged 
Protected field_worksheetLayout 
Top
See Also