Back to Devexpress

BaseView Members

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-baseview-dot-underscore-members.md

latest33.4 KB
Original Source

BaseView Members

The base class for Views in a DocumentManager.

Properties

NameDescription
ActiveDocumentGets the active document.
ActiveFloatDocumentGets the active floating document.
AllowHotkeyNavigationGets or sets whether switching between tabbed documents using keyboard shortcuts is allowed.
AllowResetLayoutGets or sets whether the current DocumentManager‘s layout can be reset to default.
AppearanceContains appearance settings for the current View.
BackgroundImageGets or sets the current DocumentManager‘s background image.
BackgroundImageLayoutModeGets or sets the background image layout as defined in the ImageLayoutMode enumeration.
BackgroundImageStretchMarginsGets or sets stretching margins for a DocumentManager‘s background image in a View.
BoundsGets the visual bounds of the current object.
CanRaiseEvents protectedGets a value indicating whether the component can raise an event. Inherited from Component.
ContainerGets the IContainer that contains the Component. Inherited from Component.
ControllerProvides methods to work with documents in the current View.
CustomResizeZoneThicknessGets or sets the resize zone thickness.
DesignMode protectedGets a value that indicates whether the Component is currently in design mode. Inherited from Component.
DocumentPropertiesProvides access to properties common to all documents within the current View.
DocumentsStores all documents displayed within the View.
DocumentSelectorPropertiesProvides access to appearance settings used for a Document Selector within the current view.
Events protectedGets the list of event handlers that are attached to this Component. Inherited from Component.
FloatDocumentsProvides access to floating documents.
FloatDocumentsAlwaysOnTopGets or sets whether floating Documents are always drawn on top of their parent forms.
FloatingDocumentContainerGets or sets a type of container for floating documents within the current BaseView.
FloatPanelsThis member supports the internal infrastructure, and is not intended to be used directly from your code.
IsDisposingGets whether the BaseComponent object is currently being disposed of. Inherited from BaseComponent.
IsDocumentSelectorVisibleGets if a document selector for this BaseView is currently visible.
IsEmptyGets whether a View is empty.
IsFocusedGets whether any document within the current View has focus.
IsInitializedIndicates whether or not the BaseComponent object has been fully initialized. Inherited from BaseComponent.
IsInitializingReturns whether or not the BaseComponent object is currently being initialized. Inherited from BaseComponent.
IsLoadedGets whether the current object has been loaded.
IsLoadingGets whether the current object is being loaded.
IsLoadingAnimationInProgressGets whether loading indicator animation is currently running within this View.
IsUpdateLockedReturns whether or not this BaseComponent is currently locked, which prevents any visual updates. Inherited from BaseComponent.
ItemsThis member supports the internal infrastructure, and is not intended to be used directly from your code.
LoadingIndicatorPropertiesProvides access to appearance settings used for a loading indicator within the current BaseView.
ManagerGets a DocumentManager that owns the current View.
OptionsLayoutGets the object containing properties related to the current View’s layout.
PaddingThis is an internal property that should not be used.
SiteGets or sets the ISite of the Component. Inherited from Component.
StyleGets or sets the View style.
TypeGets the current View’s type.
UseDocumentSelectorGets or sets if a Document Selector is enabled for the current Document Manager.
UseLoadingIndicatorGets or sets if a loading indicator for deferred load should be used.
UseSnappingEmulationGets or sets whether this BaseView uses snapping emulation for its child documents.
WindowsDialogPropertiesGets an object containing settings related to the current DocumentManager‘s Windows dialog.

Methods

NameDescription
ActivateDocument(Control)Activates the document that displays the specified control.
AddDocument(String, String)Adds an empty Document with specified BaseDocument.Caption and BaseDocument.ControlName properties to the current View.
AddDocument(Control, String)Creates a Document that wraps the target control, and adds this new Document to the current BaseView.
AddFloatDocument(Control, Point, Size)Creates a floating document that hosts the target control, has the required size, and is displayed in the given location.
AddFloatDocument(Control, Point)Creates the floating document that hosts the target control and is displayed at the given position.
AddFloatDocument(Control, String)Creates a floating document that hosts the target control.
AddFloatingDocumentsHost(BaseDocument)Creates a documents host window that contains the specified document. This method is in effect in the DocumentsHost mode.
AddFloatingDocumentsHost(BaseDocument[])Creates a floating documents host (container) that will contain the specific BaseDocument objects collection.
AddFloatingDocumentsHost(Control)Creates a documents host window that contains a newly created document wrapping the specified control. This method is in effect in the DocumentsHost mode.
AddOrActivateDocument(Predicate<BaseDocument>, Func<Control>)Activates an existing document that contains the specific control. If no such document was found, a new document is created and added to this View.
BeginUpdate()Locks the BaseComponent, preventing visual updates of the object and its elements until the EndUpdate or CancelUpdate method is called. Inherited from BaseComponent.
CancelUpdate()Unlocks the BaseComponent object after it has been locked by the BeginUpdate method, without causing an immediate visual update. Inherited from BaseComponent.
CreateObjRef(Type)Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. Inherited from MarshalByRefObject.
Dispose()Releases all resources used by the Component. Inherited from Component.
EndUpdate()Unlocks the BaseComponent object after a call to the BeginUpdate method and causes an immediate visual update. Inherited from BaseComponent.
Equals(Object, Object) staticDetermines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object)Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode()Serves as the default hash function. Inherited from Object.
GetLifetimeService()Retrieves the current lifetime service object that controls the lifetime policy for this instance. Inherited from MarshalByRefObject.
GetService(Type) protectedReturns an object that represents a service provided by the Component or by its Container. Inherited from Component.
GetType()Gets the Type of the current instance. Inherited from Object.
InitializeLifetimeService()Obtains a lifetime service object to control the lifetime policy for this instance. Inherited from MarshalByRefObject.
LayoutChanged()Updates the element. Inherited from BaseComponent.
MemberwiseClone() protectedCreates a shallow copy of the current Object. Inherited from Object.
MemberwiseClone(Boolean) protectedCreates a shallow copy of the current MarshalByRefObject object. Inherited from MarshalByRefObject.
ReferenceEquals(Object, Object) staticDetermines whether the specified Object instances are the same instance. Inherited from Object.
ReleaseDeferredLoadControl(BaseDocument, Boolean, Boolean)Fires the BaseView.ControlReleasing event with the specified parameters for the specified document.
ReleaseDeferredLoadControl(BaseDocument, Boolean)Fires the BaseView.ControlReleasing event with the specified parameter for the specified document.
ReleaseDeferredLoadControl(BaseDocument)Disposes a specific deferred load Document within the current View.
ReleaseDeferredLoadControls()Disposes all deferred load Documents within the current view.
ReleaseDeferredLoadControls(Boolean, Boolean)Fires the BaseView.ControlReleasing event with the specified parameters for all documents with unreleased content in the current BaseView.
ReleaseDeferredLoadControls(Boolean)Fires the BaseView.ControlReleasing event with the specified parameter for all documents with unreleased content in the current BaseView.
RemoveDocument(Control)Removes a document whose BaseDocument.Control property’s value matches the specified control object.
RestoreLayoutFromJson(Stream)Loads the layout from a file in JSON format.
RestoreLayoutFromRegistry(String)Restores the layout from a specific registry key.
RestoreLayoutFromStream(Stream, Boolean)Restores the layout from a stream that contains data in a specific format.
RestoreLayoutFromStream(Stream)Restores the layout from a stream that contains data in binary format.
RestoreLayoutFromXml(Stream)Restores the layout from a specific stream that contains data in XML format.
RestoreLayoutFromXml(String)Restores the layout from a specific XML file.
SaveLayoutToJson(Stream)Saves the layout to a file in JSON format.
SaveLayoutToRegistry(String)Saves the layout in the system registry.
SaveLayoutToStream(Stream, Boolean)Saves the layout in a specific stream in binary format.
SaveLayoutToStream(Stream)Saves the layout in a specific stream in binary format.
SaveLayoutToXml(Stream)Saves the layout in a specific stream in XML format.
SaveLayoutToXml(String)Saves the layout in a specific file in XML format.
ToString()Gets the text representation of the BaseView object.

Events

NameDescription
BeforeLoadLayoutFires when the View attempts to restore a previously saved layout version. Allows you to cancel this restoration.
BeginDockingAllows you to cancel docking a document onto the current control.
BeginDocumentsHostDockingOccurs whenever a Floating Documents Container starts docking to this BaseView.
BeginFloatingFires when an end-user starts to drag a docked document, so that it is transformed into a floating window.
BeginSizingOccurs when a resizing of the current View’s layout begins.
ControlLoadedOccurs after a control has been loaded to a Document within this BaseView.
ControlReleasedFires after a control has been succesfully unbound from its parent document.
ControlReleasingOccurs when a document is deselected and allows you to unbind the document from its content and dispose of the content. This event is in effect in Deferred Load mode.
ControlShownFires when an empty document is loaded and displayed.
CustomDocumentsHostWindowAllows you to replace the default container for floating documents. Handle this event only when the BaseView.FloatingDocumentContainer property equals DocumentsHost.
CustomDrawBackgroundOccurs when the current View’s background becomes visible to an end-user.
DisposedOccurs when the component is disposed by a call to the Dispose() method. Inherited from Component.
DocumentActivatedFires when the View’s ActiveDocument or ActiveFloatDocument property value changes. This event does not occur on DocumentManager initialization, or when user focus switches between a docked and a floating Document. In these cases, handle the DocumentActivate event instead.
DocumentAddedFires when a new document is added to the current View.
DocumentClosedFires after a document has been closed.
DocumentClosingFires when a document is about to be closed.
DocumentDeactivatedFires when a document is deactivated.
DocumentRemovedFires when a document is removed from the BaseView.Documents collection.
DocumentSelectorCustomSortItemsAllows you to manually sort documents and dock panels displayed within the Document Selector.
DocumentSelectorHiddenFires when a document selector is closed.
DocumentSelectorShownFires when a document selector is displayed.
EmptyDocumentsHostWindowFires when the last floating document in the documents host window is closed or the control it contains is disposed, allowing you to specify whether to keep open the empty documents host window.
EndDockingFires after a document has been docked to the control.
EndDocumentsHostDockingOccurs when a Floating Document Container with all its child Documents is docked to a View.
EndFloatingFires after an end-user drops a floating document.
EndSizingOccurs when resizing the current View’s layout is complete.
FloatingFires when a docked document becomes floating.
GotFocusFires when focus is moved to any document within the current View.
LayoutOccurs whenever the current DocumentManager‘s layout is being modified.
LayoutResetFires after a DocumentManager‘s layout was reset.
LayoutResettingOccurs when the current BaseView‘s layout is to be reset.
LayoutUpgradeOccurs after a layout whose version doesn’t match the current layout’s version has been loaded from storage (a stream, xml file or system registry).
LoadingIndicatorShowingOccurs when the loading indicator is shown within this BaseView.
LostFocusFires when focus is moved from the current View’s document to any external control (for instance, to an external DockPanel).
NextDocumentFires when an end-user tries to switch to the next or previous document by pressing CTRL+TAB or CTRL+SHIFT+TAB.
PaintOccurs when the BaseView is redrawn.
PopupMenuShowingFires when a context menu is about to be displayed.
QueryControlOccurs when a document is to be displayed and allows you to assign content to this document. This event is in effect in Deferred Load mode.
QueryDocumentOccurs when the restored layout version has a Document that is not present in the View. Allows you to skip this Document or add it to the View.
RegisterDocumentsHostWindowFires when a document starts to float in its individual container. Provides access to the host window and its DocumentManager so you can handle events as required. This event is in effect in DocumentsHost mode.
RestoreLayoutErrorOccurs when a saved layout is invalid and cannot be restored. Allows you to fix restore layout exceptions.
ShowingDockGuidesAllows you to hide dock guides and hints that appear when a user drags a Document or a DockPanel.
UnregisterDocumentsHostWindowFires when a documents host window is closed and allows you to unsubscribe event handlers from its DocumentManager.

See Also

BaseView Class

DevExpress.XtraBars.Docking2010.Views Namespace