DocumentDesigner Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Base designer class for extending the design mode behavior of, and providing a root-level design mode view for, a Control that supports nested controls and should receive scroll messages.
public ref class DocumentDesigner : System::Windows::Forms::Design::ScrollableControlDesigner, IDisposable, System::ComponentModel::Design::IRootDesigner, System::Drawing::Design::IToolboxUser
public class DocumentDesigner : System.Windows.Forms.Design.ScrollableControlDesigner, IDisposable, System.ComponentModel.Design.IRootDesigner, System.Drawing.Design.IToolboxUser
type DocumentDesigner = class
inherit ScrollableControlDesigner
interface IRootDesigner
interface IDesigner
interface IDisposable
interface IToolboxUser
Public Class DocumentDesigner
Inherits ScrollableControlDesigner
Implements IDisposable, IRootDesigner, IToolboxUser
- Inheritance
-
DocumentDesigner
- Implements
Remarks
This designer is a root designer, meaning that it provides the root-level design mode view for the associated document when it is viewed in design mode.
You can associate a designer with a type using a DesignerAttribute. For an overview of customizing design time behavior, see Extending Design-Time Support.
Constructors
| Name | Description |
|---|---|
| DocumentDesigner() |
Initializes a new instance of the DocumentDesigner class. |
Fields
| Name | Description |
|---|---|
| accessibilityObj |
Specifies the accessibility object for the designer. (Inherited from ControlDesigner) |
| menuEditorService |
Initializes the menuEditorService variable to |
Properties
| Name | Description |
|---|---|
| AccessibilityObject |
Gets the AccessibleObject assigned to the control. (Inherited from ControlDesigner) |
| ActionLists |
Gets the design-time action lists supported by the component associated with the designer. (Inherited from ComponentDesigner) |
| AllowControlLasso |
Gets a value indicating whether selected controls will be re-parented. (Inherited from ParentControlDesigner) |
| AllowGenericDragBox |
Gets a value indicating whether a generic drag box should be drawn when dragging a toolbox item over the designer's surface. (Inherited from ParentControlDesigner) |
| AllowSetChildIndexOnDrop |
Gets a value indicating whether the z-order of dragged controls should be maintained when dropped on a ParentControlDesigner. (Inherited from ParentControlDesigner) |
| AssociatedComponents |
Gets the collection of components associated with the component managed by the designer. (Inherited from ControlDesigner) |
| AutoResizeHandles |
Gets or sets a value indicating whether resize handle allocation depends on the value of the AutoSize property. (Inherited from ControlDesigner) |
| BehaviorService |
Gets the BehaviorService from the design environment. (Inherited from ControlDesigner) |
| Component |
Gets the component this designer is designing. (Inherited from ComponentDesigner) |
| Control |
Gets the control that the designer is designing. (Inherited from ControlDesigner) |
| DefaultControlLocation |
Gets the default location for a control added to the designer. (Inherited from ParentControlDesigner) |
| DrawGrid |
Gets or sets a value indicating whether a grid should be drawn on the control for this designer. (Inherited from ParentControlDesigner) |
| EnableDragRect |
Gets a value indicating whether drag rectangles are drawn by the designer. (Inherited from ParentControlDesigner) |
| GridSize |
Gets or sets the size of each square of the grid that is drawn when the designer is in grid draw mode. (Inherited from ParentControlDesigner) |
| InheritanceAttribute |
Gets the InheritanceAttribute of the designer. (Inherited from ControlDesigner) |
| Inherited |
Gets a value indicating whether this component is inherited. (Inherited from ComponentDesigner) |
| MouseDragTool |
Gets a value indicating whether the designer has a valid tool during a drag operation. (Inherited from ParentControlDesigner) |
| ParentComponent |
Gets the parent component for the ControlDesigner. (Inherited from ControlDesigner) |
| ParticipatesWithSnapLines |
Gets a value indicating whether the ControlDesigner will allow snapline alignment during a drag operation. (Inherited from ControlDesigner) |
| SelectionRules |
Gets the SelectionRules for the designer. |
| SetTextualDefaultProperty | (Inherited from ComponentDesigner) |
| ShadowProperties |
Gets a collection of property values that override user settings. (Inherited from ComponentDesigner) |
| SnapLines |
Gets a list of SnapLine objects representing significant alignment points for this control. (Inherited from ParentControlDesigner) |
| Verbs |
Gets the design-time verbs supported by the component that is associated with the designer. (Inherited from ComponentDesigner) |
Methods
| Name | Description |
|---|---|
| AddPaddingSnapLines(ArrayList) |
Adds padding snaplines. (Inherited from ParentControlDesigner) |
| BaseWndProc(Message) |
Processes Windows messages. (Inherited from ControlDesigner) |
| CanAddComponent(IComponent) |
Called when a component is added to the parent container. (Inherited from ParentControlDesigner) |
| CanBeParentedTo(IDesigner) |
Indicates if this designer's control can be parented by the control of the specified designer. (Inherited from ControlDesigner) |
| CanParent(Control) |
Indicates whether the specified control can be a child of the control managed by this designer. (Inherited from ParentControlDesigner) |
| CanParent(ControlDesigner) |
Indicates whether the control managed by the specified designer can be a child of the control managed by this designer. (Inherited from ParentControlDesigner) |
| CreateTool(ToolboxItem, Point) |
Creates a component or control from the specified tool and adds it to the current design document at the specified location. (Inherited from ParentControlDesigner) |
| CreateTool(ToolboxItem, Rectangle) |
Creates a component or control from the specified tool and adds it to the current design document within the bounds of the specified rectangle. (Inherited from ParentControlDesigner) |
| CreateTool(ToolboxItem) |
Creates a component or control from the specified tool and adds it to the current design document. (Inherited from ParentControlDesigner) |
| CreateToolCore(ToolboxItem, Int32, Int32, Int32, Int32, Boolean, Boolean) |
Provides core functionality for all the CreateTool(ToolboxItem) methods. (Inherited from ParentControlDesigner) |
| DefWndProc(Message) |
Provides default processing for Windows messages. (Inherited from ControlDesigner) |
| DisplayError(Exception) |
Displays information about the specified exception to the user. (Inherited from ControlDesigner) |
| Dispose() |
Releases all resources used by the ComponentDesigner. (Inherited from ComponentDesigner) |
| Dispose(Boolean) |
Releases the unmanaged resources used by the DocumentDesigner and optionally releases the managed resources. |
| DoDefaultAction() |
Creates a method signature in the source code file for the default event on the component and navigates the user's cursor to that location. (Inherited from ComponentDesigner) |
| EnableDesignMode(Control, String) |
Enables design time functionality for a child control. (Inherited from ControlDesigner) |
| EnableDragDrop(Boolean) |
Enables or disables drag-and-drop support for the control being designed. (Inherited from ControlDesigner) |
| EnsureMenuEditorService(IComponent) |
Checks for the existence of a menu editor service and creates one if one does not already exist. |
| Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
| GetControl(Object) |
Gets the control from the designer of the specified component. (Inherited from ParentControlDesigner) |
| GetControlGlyph(GlyphSelectionType) |
Gets a body glyph that represents the bounds of the control. (Inherited from ParentControlDesigner) |
| GetGlyphs(GlyphSelectionType) |
Gets a GlyphCollection representing the Glyph objects. |
| GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
| GetHitTest(Point) |
Indicates whether a mouse click at the specified point should be handled by the control. (Inherited from ScrollableControlDesigner) |
| GetParentForComponent(IComponent) |
Used by deriving classes to determine if it returns the control being designed or some other Container while adding a component to it. (Inherited from ParentControlDesigner) |
| GetService(Type) |
Attempts to retrieve the specified type of service from the design mode site of the designer's component. (Inherited from ComponentDesigner) |
| GetToolSupported(ToolboxItem) |
Indicates whether the specified tool is supported by the designer. |
| GetType() |
Gets the Type of the current instance. (Inherited from Object) |
| GetUpdatedRect(Rectangle, Rectangle, Boolean) |
Updates the position of the specified rectangle, adjusting it for grid alignment if grid alignment mode is enabled. (Inherited from ParentControlDesigner) |
| HookChildControls(Control) |
Routes messages from the child controls of the specified control to the designer. (Inherited from ControlDesigner) |
| Initialize(IComponent) |
Initializes the designer with the specified component. |
| InitializeExistingComponent(IDictionary) |
Re-initializes an existing component. (Inherited from ControlDesigner) |
| InitializeNewComponent(IDictionary) |
Initializes a newly created component. (Inherited from ParentControlDesigner) |
| InitializeNonDefault() |
Initializes properties of the control to any non-default values. (Inherited from ControlDesigner) |
| InternalControlDesigner(Int32) |
Returns the internal control designer with the specified index in the ControlDesigner. (Inherited from ControlDesigner) |
| InvokeGetInheritanceAttribute(ComponentDesigner) |
Gets the InheritanceAttribute of the specified ComponentDesigner. (Inherited from ComponentDesigner) |
| MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
| NumberOfInternalControlDesigners() |
Returns the number of internal control designers in the |