Brush |
public class BrushControllerAdvanced : MVCANDControllerEditImmutableDocBase<BrushX, IBrushViewAdvanced>
The BrushControllerAdvanced type exposes the following members.
| Name | Description | |
|---|---|---|
| BrushControllerAdvanced | Initializes a new instance of the BrushControllerAdvanced class |
| Name | Description | |
|---|---|---|
| AdditionalPropertiesController | Gets the controller for additional image properties. | |
| BackColor | Gets or sets the background color. | |
| BackColorEnable | Gets or sets a value indicating whether the background color editor is enabled. | |
| BrushDocument | Gets the current brush document. | |
| BrushType | Gets or sets the brush type. | |
| ExchangeColors | Gets or sets a value indicating whether foreground and background colors are exchanged. | |
| ExchangeColorsEnable | Gets or sets a value indicating whether the color exchange option is enabled. | |
| ForeColor | Gets or sets the foreground color. | |
| ForeColorEnable | Gets or sets a value indicating whether the foreground color editor is enabled. | |
| GradientAngle | Gets or sets the gradient angle. | |
| GradientAngleEnable | Gets or sets a value indicating whether the gradient angle editor is enabled. | |
| GradientAngleEnvironment | Gets or sets the unit environment for the gradient angle. | |
| GradientColorScale | Gets or sets the gradient color scale. | |
| GradientColorScaleEnable | Gets or sets a value indicating whether the gradient color scale editor is enabled. | |
| GradientColorScaleEnvironment | Gets or sets the unit environment for the gradient color scale. | |
| GradientFocus | Gets or sets the gradient focus. | |
| GradientFocusEnable | Gets or sets a value indicating whether the gradient focus editor is enabled. | |
| GradientFocusEnvironment | Gets or sets the unit environment for the gradient focus. | |
| IsDisposed |
Gets a value indicating whether this controller is already disposed.
(Inherited from ControllerBase) | |
| ModelObject |
Gets the model (document) that this controller manages.
(Inherited from MVCANControllerEditImmutableDocBaseTModel, TView) | |
| NoDocumentException |
Gets an exception that is thrown when a controller was not initialized with a document.
(Inherited from ControllerBase) | |
| NotInitializedException |
Gets an exception that is thrown when a controller is not properly initialized.
(Inherited from ControllerBase) | |
| NoViewException |
Gets an exception that is thrown when a controller currently has no view.
(Inherited from ControllerBase) | |
| ProvisionalModelObject |
Gets the provisional model object. This is the model object that is based on the current user input.
(Inherited from MVCANDControllerEditImmutableDocBaseTModel, TView) | |
| ShowPlotColorsOnly | Gets or sets a value indicating whether only plot colors are shown. | |
| TextureImage | Gets or sets the texture image. | |
| TextureImageEnable | Gets or sets a value indicating whether the texture image editor is enabled. | |
| TextureOffsetX | Gets or sets the x texture offset. | |
| TextureOffsetXEnable | Gets or sets a value indicating whether the x texture offset editor is enabled. | |
| TextureOffsetXEnvironment | Gets the unit environment for the x texture offset. | |
| TextureOffsetY | Gets or sets the y texture offset. | |
| TextureOffsetYEnable | Gets or sets a value indicating whether the y texture offset editor is enabled. | |
| TextureOffsetYEnvironment | Gets the unit environment for the y texture offset. | |
| TextureScalingController | Gets the texture scaling controller. | |
| TextureScalingEnable | Gets or sets a value indicating whether texture scaling is enabled. | |
| 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.
(Inherited from MVCANControllerEditImmutableDocBaseTModel, TView) | |
| ViewObject |
Gets or sets the GUI element that shows the model to the user.
(Inherited from MVCANDControllerEditImmutableDocBaseTModel, TView) | |
| WrapMode | Gets or sets the wrap mode. | |
| WrapModeEnable | Gets or sets a value indicating whether the wrap mode editor is enabled. |
| Name | Description | |
|---|---|---|
| Apply |
Called when the user input has to be applied to the document being controlled. Returns if applying succeeded.
(Overrides MVCANControllerEditImmutableDocBaseTModel, TViewApply(Boolean)) | |
| ApplyEnd |
Helper that performs the final steps of the apply operation, optionally disposing the controller.
(Inherited from MVCANDControllerEditImmutableDocBaseTModel, TView) | |
| AttachView |
Override this function to attach the view to the controller, either by subscribing to events of the view, or by setting the controller object on the view.
(Inherited from MVCANControllerEditImmutableDocBaseTModel, TView) | |
| CheckDocumentInitializedT |
Checks whether the document has been initialized and throws an exception if it is null.
(Inherited from ControllerBase) | |
| DetachView |
Override this function to detach the view from the controller, either by unsubscribing from events of the view or by setting the controller object on the view to null.
(Inherited from MVCANControllerEditImmutableDocBaseTModel, TView) | |
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from ControllerBase) | |
| Dispose(Boolean) |
Releases unmanaged and, optionally, managed resources.
(Inherited from MVCANControllerEditImmutableDocBaseTModel, TView) | |
| 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) | |
| GetSubControllers |
Enumerates the sub controllers. This function is called on Dispose(Boolean) of this controller to dispose the sub controllers too.
By overriding this function, there is no need to override Dispose(Boolean).
(Overrides MVCANControllerEditImmutableDocBaseTModel, TViewGetSubControllers) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| Initialize |
Basic initialization of the document.
(Overrides MVCANControllerEditImmutableDocBaseTModel, TViewInitialize(Boolean)) | |
| InitializeDocument |
Initialize the controller with the document. If successful, the function has to return true.
(Inherited from MVCANDControllerEditImmutableDocBaseTModel, TView) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| OnMadeDirty |
Fires the MadeDirty event (if it is not suppressed).
(Overrides MVCANDControllerEditImmutableDocBaseTModel, TViewOnMadeDirty) | |
| OnPropertyChanged |
Raises the PropertyChanged event.
(Inherited from ControllerBase) | |
| Revert |
Tries to revert changes to the model, i.e. restores the original state of the model.
(Inherited from MVCANControllerEditImmutableDocBaseTModel, TView) | |
| ThrowIfNotInitialized | Throws an exception if the controller is not initialized with a document. (Inherited from MVCANControllerEditImmutableDocBaseTModel, TView) | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| Name | Description | |
|---|---|---|
| MadeDirty |
Event fired when the user changed some data that will change the model.
(Inherited from MVCANDControllerEditImmutableDocBaseTModel, TView) | |
| PropertyChanged | Occurs when a property value changes. (Inherited from ControllerBase) |
| Name | Description | |
|---|---|---|
| _doc |
The document to edit. If _useDocumentCopy is , this is a copy of the original document; otherwise, it is the original document itself.
(Inherited from MVCANControllerEditImmutableDocBaseTModel, TView) | |
| _originalDoc |
The original document. If _useDocumentCopy is , it may have been edited by this controller.
(Inherited from MVCANControllerEditImmutableDocBaseTModel, TView) | |
| _setModelInParentModel |
If not null, this action is invoked during the apply stage to set the model of this controller in the parent object.
(Inherited from MVCANDControllerEditImmutableDocBaseTModel, TView) | |
| _suppressDirtyEvent |
Used to suppress the MadeDirty event of this controller.
(Inherited from MVCANDControllerEditImmutableDocBaseTModel, TView) | |
| _useDocumentCopy |
If , a copy of the document is made before editing; this copy can later be used to revert the state of the document to the original state.
(Inherited from MVCANControllerEditImmutableDocBaseTModel, TView) | |
| _view |
The GUI view of this controller.
(Inherited from MVCANControllerEditImmutableDocBaseTModel, TView) |