Table of Contents

Interface IFormDesignerControl

Namespace
Alternet.FormDesigner.WinForms
Assembly
Alternet.FormDesigner.v9.dll

Represents properties and methods to support all standard form editing operations with controls.

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 CommandKeyBinding accepted by this FormDesignerControl.

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 FormDesignerControl content should be saved only by taking into account code difference.

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

DiscoverKnownTypes(Type)

When implemented by a class, return discovered descendand types for the base type

GetLocalizationLanguage()

When implemented by a class, gets current culture information

RaiseComponentChanged(object)

When implemented by a class, raises ComponentChanged event handler

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 a 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.

DesignSurfaceKeyDown

When implemented by a class, occurs when user presses a key when design surface is focused.

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.

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

When implemented by a class, occurs when ReferencedAssemblies list is changed.

SelectionChanged

When implemented by a class, occurs when user selects different control in the designer.

TypeDiscoveryRequested

When implemented by a class, occurs when IFormDesignerControl tries to descover types.