Back to Devexpress

View Members

expressappframework-devexpress-dot-expressapp-dot-view-dot-underscore-members.md

latest14.1 KB
Original Source

View Members

The base class for Views.

Fields

NameDescription
SecurityReadOnlyItemNameReturns a key used to create an item in the View.AllowEdit collection of the current View. This key specifies a reason for making the View editable/read-only when the Security System allows/denies access to edit to the object(s) represented by the View.

Properties

NameDescription
AllowDeleteProvides access to a collection of reason/value pairs used to allow or prohibit deletion of objects via a View.
AllowEditProvides access to a collection of reason/value pairs used to make a View read-only/editable.
AllowNewProvides access to a collection of reason/value pairs used to allow or prohibit creation of new objects via a View.
CaptionSpecifies a View‘s caption.
ControlReturns the current View‘s control.
CurrentObjectSpecifies a View‘s current object.
ErrorMessagesAllows access to the current View‘s message collection.
IdReturns a View‘s ID.
Initialization
IsControlCreatedIndicates whether a View‘s View.Control has been created.
IsDisposedGets a value indicating whether a View has been disposed of.
IsRootSpecifies whether a View is root.
ModelProvides access to information on a View, which is stored in the Application Model.
ObjectSpaceProvides access to the object space within which a View was created.
ObjectTypeInfoGets the ObjectTypeInfo property value if the current View is ObjectView. Otherwise, returns null.
SelectedObjectsSpecifies a View‘s selected objects.
SelectionTypeReturns the selection type supported by a View.
TagSpecifies the custom data associated with the View.

Methods

NameDescription
BreakLinksToControls()Removes references to a View‘s controls and their event handlers.
CanChangeCurrentObject()Determines whether a View‘s current object can be changed.
CanClose()Determines whether a View can be closed.
Close()Closes a View.
Close(Boolean)Closes a View if it is allowed to be closed.
CreateControls()Creates controls that visualize a View in a UI.
CreateShortcut()Returns key information on the current View.
Dispose()Releases all resources used by this View object.
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.
ExecuteAfterInitialized(Action<Task>)
GetCurrentObjectCaption()Returns the current object’s caption, formatted according to the applied ObjectCaptionFormatAttribute.
GetHashCode()Serves as the default hash function. Inherited from Object.
GetType()Gets the Type of the current instance. Inherited from Object.
IsSameObjectSpace(View)Checks whether a specific View interacts with the database via the current View’s Object Space.
LoadModel(Boolean)Applies the Application Model changes to the current View.
MemberwiseClone() protectedCreates a shallow copy of the current Object. Inherited from Object.
RaiseActivated()Raises the View.Activated event.
ReferenceEquals(Object, Object) staticDetermines whether the specified Object instances are the same instance. Inherited from Object.
Refresh()Refreshes displayed values of the View‘s controls with new values from the data source collection (not from the database itself).
Refresh(Boolean)Refreshes displayed values of the View‘s controls with new values from the data source collection (and optionally, from the database itself).
RefreshDataSource()Refreshes the data source of the current View.
SaveModel()Writes information on a View to the Application Model.
ToString()Returns a View‘s textual representation.

Events

NameDescription
ActivatedOccurs when the View.RaiseActivated method is executed.
AllowDeleteChangedOccurs when the current View‘s View.AllowDelete state has changed.
AllowEditChangedOccurs when the current View‘s View.AllowEdit state has changed.
AllowNewChangedOccurs when the current View‘s View.AllowNew state has changed.
CaptionChangedOccurs after changing a View‘s caption.
ClosedOccurs after the current View is closed.
ClosingOccurs when closing a View.
ControlsCreatedOccurs after controls for a View are created.
ControlsCreatingOccurs before creating controls for a View.
CurrentObjectChangedOccurs after changing a View’s focused object (not an object’s property value).
CustomizeViewShortcutOccurs when the View.CreateShortcut method creates a View Shortcut for the current View.
CustomModelSavingOccurs when saving information on a View’s editor(s) to the Application Model.
DisposingOccurs when the current View is disposed of.
ModelChangedOccurs after setting the View.Model property for a View.
ModelChangingOccurs before setting the View.Model property for a View.
ModelLoadedThis event is intended for internal use.
ModelSavedOccurs after the information on a View has been saved to the Application Model.
ModelSavingOccurs before saving information on a View’s controls to the Application Model.
QueryCanChangeCurrentObjectOccurs when the View is asked whether its current object can be changed.
QueryCanCloseOccurs when checking whether a View can be closed.
SelectionChangedOccurs after changing a View’s selected objects.
SelectionTypeChangedOccurs when the current View’s selection type is changed.

See Also

View Class

DevExpress.ExpressApp Namespace