Enum |
public class EnumValueController : IMVCANController, IMVCAController, IMVCController, IDisposable, IApplyController, INotifyPropertyChanged
The EnumValueController type exposes the following members.
| Name | Description | |
|---|---|---|
| EnumValueController | Initializes a new instance of the EnumValueController class. | |
| EnumValueController(Enum) | Initializes a new instance of the EnumValueController class. |
| Name | Description | |
|---|---|---|
| IsFlagsEnum | Gets a value indicating whether the edited enumeration is a flags enumeration. | |
| IsLongFlagsEnum | Gets a value indicating whether the flags enumeration uses the expanded representation. | |
| IsLongNonFlagsEnum | Gets a value indicating whether the non-flags enumeration uses the expanded representation. | |
| IsShortFlagsEnum | Gets a value indicating whether the flags enumeration uses the compact representation. | |
| IsShortNonFlagsEnum | Gets a value indicating whether the non-flags enumeration uses the compact representation. | |
| ItemsFlagsEnum | Gets the items for flags enumerations. | |
| ItemsLongNonFlagsEnum | Gets the items for long non-flags enumerations. | |
| ItemsShortNonFlagsEnum | Gets the items for short non-flags enumerations. | |
| MaximumNumberOfEntriesForShortDesign | Gets or sets the maximum number of entries that will be shown in short design mode (e.g. radio buttons instead of combobox). | |
| ModelObject | Gets the model (document) that this controller manages. | |
| SelectedItemNonFlagsEnum | Gets or sets the selected item for non-flags enumerations. | |
| UseDocumentCopy | Sets whether or not a copy of the document is used. If set to true, a copy of the document is used, so if the controller is not applied, all changes can be reverted. If set to false, no copy must be made. The document is directly changed by the controller, and changes cannot be reverted. Use the last option if a controller higher in the hierarchy has already made a copy of the document. | |
| ViewObject | Gets or sets the GUI element that shows the model to the user. |
| Name | Description | |
|---|---|---|
| Apply | Called when the user input has to be applied to the document being controlled. Returns if apply is successful. | |
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| InitializeDocument | Initializes the controller with the document. | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| OnPropertyChanged | Raises the PropertyChanged event. | |
| Revert | Try to revert changes to the model, i.e. restores the original state of the model. | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| Name | Description | |
|---|---|---|
| PropertyChanged | Occurs when a property value changes. |