IFormDesignerControl Interface
Definition
Represents a properties and methods to support all standard form editing operations with controls.
Syntax
public interface IFormDesignerControl
Properties
AutoAddComponentAssemblyReferences | When implemented by a class, gets or sets a boolean value indicating whether designer should automatically try to add assembly references after a control is added. |
AutoSaveToSource | When implemented by a class, gets or sets a boolean value indicating whether designer should automatically translate changes to the source upon every change. |
CommandKeyBindings | When implemented by a class, represents a list of |
DesignerCommands | When implemented by a class, represents a collection of standard designer commands like selecting, copying, pasting, moving and resizing controls. |
DesignerHost | When implemented by a class, provides an interface for managing designer transactions and components.. |
ImportedNamespaces | When implemented by a class, in case of Visual Basic, gets collection of globally available namespaces. |
IsBeingLoaded | When implemented by a class, gets a boolean value indicating that designer is currently being loaded. |
IsModified | When implemented by a class, represents a value indicates whether designer content has been modified since last save. |
IsSmartDiffCodeSerializationRequired | When implemented by a class, gets or sets method used to identify whether |
Options | When implemented by a class, gets designer options like snap settings, grid size etc. |
PrimarySelection | When implemented by a class, gets first selected component or control. |
ReferencedAssemblies | When implemented by a class, gets collection of assemblies where the controls and components used on the form being designed are declared. |
SelectedComponents | When implemented by a class, contains list of selected components or controls. |
ServiceContainer | When implemented by a class, represents a container for designer-related services. |
Source | When implemented by a class, gets or sets FormDesigner Source. |
ToolboxControl | When implemented by a class, gets or sets toolbox control associated with the designer. |
UserData | When implemented by a class, gets or sets user-specific data associated with this Form Designer |
Methods
GetLocalizationLanguage() | When implemented by a class, gets current culture information |
RaiseComponentChanged(Object) | |
Reload() | When implemented by a class, reloads form to be designed from the source. |
Save() | When implemented by a class, serializes designer to C# or Visual Basic file. |
SetLocalizationLanguage(CultureInfo) | When implemented by a class, sets current culture information |
Events
CommandStateChanged | When implemented by a class, occurs when state of designer commands changes (for example when undo stack becomes available). |
CompilerErrorClick | When implemented by a class, occurs when user clicks on compiler error on Form Designer surface. |
ComponentAdded | When implemented by a class, occurs when some component was added on the designer surface. |
ComponentChanged | Occurs when some component was changed on the designer surface. |
ComponentRemoved | When implemented by a class, occurs when some component was removed from the designer surface. |
DesignedContentChanged | When implemented by a class, occurs when user modifies any aspect of the control being designed. |
DesignerHostChanged | When implemented by a class, occurs when designer host changes, for example if new form is loaded. |
DesignSurfaceKeyDown | When implemented by a class, occurs when user presses a key when design surface is focused. |
LoadingErrorOccured | When implemented by a class, occurs when there is a parse error of the design code during loading. |
NavigateToUserMethodRequested | When implemented by a class, occurs when form designer is requested to navigate to the event handler. For example, when user double clicks on the control. |
ReferencedAssembliesChanged | |
SelectionChanged | When implemented by a class, occurs when user selects different control in the designer. |
TypeDiscoveryRequested |