Skip to main content
.NET 8.0+

ViewItem Members

Represents a base class for View Items.

Constructors

Name Description
ViewItem(Type, String) Creates a new instance of the ViewItem class.

Properties

Name Description
Caption Returns the current View Item‘s caption.
Control Returns the current View Item’s control displayed in a UI.
CurrentObject Specifies the object for which the current View Item’s View is created.
Id Gets the identifier of the current View Item.
IsCaptionVisible Indicates whether the caption of the current View Item should be visible.
IsDisposed
ObjectType Specifies the type of object for which the current View Item’s View is created.
ObjectTypeInfo Provides access to the information on the type of the object which is represented by the current View Item’s View.
View Specifies the Detail View that contains the current View Item.

Methods

Name Description
BreakLinksToControl(Boolean) Unsubscribes from the control’s events and, depending on the parameter, also disposes of the control and removes the link to the control.
CreateControl() Creates a control that represents the current View Item in a UI.
Dispose() Releases all resources used by this ViewItem object.
Equals(Object, Object) static Determines 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.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Refresh() Refreshes the current View Item.
Refresh(Boolean) Refreshes the current View Item. Optionally, refreshes the View Item’s data source.
RefreshDataSource() Refreshes the data source of the current ViewItem.
SaveModel() Saves the required information on the current state of the View Item to the Application Model.
ToString() Returns a string that represents the current object. Inherited from Object.

Events

Name Description
ControlCreated Occurs after a control has been created for the current View Item.
ControlCreating Occurs before a control is created for the current View Item.
CurrentObjectChanged Occurs after changing the object (not an object’s property value) for which the current View Item’s View is created.
CurrentObjectChanging Occurs before changing the object for which the current View Item’s View is created.
See Also