IWorkbench Interface |
public interface IWorkbench : INotifyPropertyChanged, IMementoCapable
The IWorkbench type exposes the following members.
Name | Description | |
---|---|---|
ActiveContent | The active content, depending on where the focus currently is. If a document is currently active, this will be equal to ActiveViewContent, if a pad has the focus, this property will return the IPadContent instance. | |
ActiveViewContent | The active view content inside the active workbench window. | |
FullScreen | Gets or sets a value indicating whether the workbench is shown full screen, or not. | |
PadContentCollection | A collection in which all content which is shown as pads (not as documents). | |
ViewContentCollection | A collection in which all opened view contents (including all secondary view contents) are saved. | |
ViewObject | Gets the corresponding workbench GUI object, i.e for Windows the main windows. |
Name | Description | |
---|---|---|
Close | Closes the workbench by closing the main window of the workbench. | |
CloseAllViews | Closes all views. | |
CloseContent | Closes the workbench view content. | |
ClosePad | Closes a pad. Be aware that only those pads could be closed, which are treated as documents, but are located in the pad area. Those pads don't have a pad descriptor. Pads that have a pad descriptor can not be closed by this command. To hide them, set the IsVisible property to false. | |
CreateMemento |
Creates a new memento from the state.
(Inherited from IMementoCapable) | |
EhProjectChanged | Informs the workbench that the project instance has changed. | |
GetViewModelT | Gets the content for the provided document. | |
GetViewModelsT | Gets the content for the provided document. | |
SaveCompleteWorkbenchStateAndLayoutInPropertyService | ||
SetMemento |
Sets the state, using the given memento.
(Inherited from IMementoCapable) | |
ShowPad | Shows the provided pad content in the pad area. | |
ShowView | Shows the view content. The type of object content depends on the GUI type. SharpDevelop's GUI requires an object of type IViewContent; |
Name | Description | |
---|---|---|
ActiveContentChanged | Occurs when the active view content changed. When active view content changed, first, the corresponding PropertyChanged event will be raised. Only after that, the event here will be raised. | |
ActiveViewContentChanged | Occurs when the active view content changed. When active view content changed, first, the PropertyChanged event will be raised. Only after that, the event here will be raised. | |
PropertyChanged | Occurs when a property value changes. (Inherited from INotifyPropertyChanged) |