Export (0) Print
Expand All

ScrollableControlDesigner Class

Base designer class for extending the design mode behavior of a Control which should receive scroll messages.

Namespace:  System.Windows.Forms.Design
Assembly:  System.Design (in System.Design.dll)

public class ScrollableControlDesigner : ParentControlDesigner

The ScrollableControlDesigner type exposes the following members.

  NameDescription
Public methodScrollableControlDesignerInitializes a new instance of the ScrollableControlDesigner class.
Top

  NameDescription
Public propertyAccessibilityObjectGets the AccessibleObject assigned to the control. (Inherited from ControlDesigner.)
Public propertyActionListsGets the design-time action lists supported by the component associated with the designer. (Inherited from ComponentDesigner.)
Protected propertyAllowControlLassoGets a value indicating whether selected controls will be re-parented. (Inherited from ParentControlDesigner.)
Protected propertyAllowGenericDragBoxGets a value indicating whether a generic drag box should be drawn when dragging a toolbox item over the designer's surface. (Inherited from ParentControlDesigner.)
Protected propertyAllowSetChildIndexOnDropGets a value indicating whether the z-order of dragged controls should be maintained when dropped on a ParentControlDesigner. (Inherited from ParentControlDesigner.)
Public propertyAssociatedComponentsGets the collection of components associated with the component managed by the designer. (Inherited from ControlDesigner.)
Public propertyAutoResizeHandlesInfrastructure. Gets or sets a value indicating whether resize handle allocation depends on the value of the AutoSize property. (Inherited from ControlDesigner.)
Protected propertyBehaviorServiceGets the BehaviorService from the design environment. (Inherited from ControlDesigner.)
Public propertyComponentGets the component this designer is designing. (Inherited from ComponentDesigner.)
Public propertyControlGets the control that the designer is designing. (Inherited from ControlDesigner.)
Protected propertyDefaultControlLocationGets the default location for a control added to the designer. (Inherited from ParentControlDesigner.)
Protected propertyDrawGridGets or sets a value indicating whether a grid should be drawn on the control for this designer. (Inherited from ParentControlDesigner.)
Protected propertyEnableDragRectGets a value indicating whether drag rectangles are drawn by the designer. (Inherited from ParentControlDesigner.)
Protected propertyGridSizeGets or sets the size of each square of the grid that is drawn when the designer is in grid draw mode. (Inherited from ParentControlDesigner.)
Protected propertyInheritanceAttributeGets the System.ComponentModel.InheritanceAttribute of the designer. (Inherited from ControlDesigner.)
Protected propertyInheritedGets a value indicating whether this component is inherited. (Inherited from ComponentDesigner.)
Protected propertyMouseDragToolGets a value indicating whether the designer has a valid tool during a drag operation. (Inherited from ParentControlDesigner.)
Protected propertyParentComponentGets the parent component for the ControlDesigner. (Inherited from ControlDesigner.)
Public propertyParticipatesWithSnapLinesGets a value indicating whether the ControlDesigner will allow snapline alignment during a drag operation. (Inherited from ControlDesigner.)
Public propertySelectionRulesGets the selection rules that indicate the movement capabilities of a component. (Inherited from ControlDesigner.)
Protected propertyShadowPropertiesGets a collection of property values that override user settings. (Inherited from ComponentDesigner.)
Public propertySnapLinesGets a list of SnapLine objects representing significant alignment points for this control. (Inherited from ParentControlDesigner.)
Public propertyVerbsGets the design-time verbs supported by the component that is associated with the designer. (Inherited from ComponentDesigner.)
Top

  NameDescription
Protected methodAddPaddingSnapLinesAdds padding snaplines. (Inherited from ParentControlDesigner.)
Protected methodBaseWndProcProcesses Windows messages. (Inherited from ControlDesigner.)
Protected methodCanAddComponentInfrastructure. Called when a component is added to the parent container. (Inherited from ParentControlDesigner.)
Public methodCanBeParentedToIndicates if this designer's control can be parented by the control of the specified designer. (Inherited from ControlDesigner.)
Public methodCanParent(Control)Indicates whether the specified control can be a child of the control managed by this designer. (Inherited from ParentControlDesigner.)
Public methodCanParent(ControlDesigner)Indicates whether the control managed by the specified designer can be a child of the control managed by this designer. (Inherited from ParentControlDesigner.)
Protected methodCreateTool(ToolboxItem)Creates a component or control from the specified tool and adds it to the current design document. (Inherited from ParentControlDesigner.)
Protected methodCreateTool(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.)
Protected methodCreateTool(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.)
Protected methodCreateToolCoreProvides core functionality for all the CreateTool methods. (Inherited from ParentControlDesigner.)
Protected methodDefWndProcProvides default processing for Windows messages. (Inherited from ControlDesigner.)
Protected methodDisplayErrorDisplays information about the specified exception to the user. (Inherited from ControlDesigner.)
Public methodDispose()Releases all resources used by the ComponentDesigner. (Inherited from ComponentDesigner.)
Protected methodDispose(Boolean)Releases the unmanaged resources used by the ParentControlDesigner, and optionally releases the managed resources. (Inherited from ParentControlDesigner.)
Public methodDoDefaultActionCreates 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.)
Protected methodEnableDesignModeEnables design time functionality for a child control. (Inherited from ControlDesigner.)
Protected methodEnableDragDropEnables or disables drag-and-drop support for the control being designed. (Inherited from ControlDesigner.)
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAttempts to free resources by calling Dispose(false) before the object is reclaimed by garbage collection. (Inherited from ComponentDesigner.)
Protected methodGetControlGets the control from the designer of the specified component. (Inherited from ParentControlDesigner.)
Protected methodGetControlGlyphGets a body glyph that represents the bounds of the control. (Inherited from ParentControlDesigner.)
Public methodGetGlyphsGets a collection of Glyph objects representing the selection borders and grab handles for a standard control. (Inherited from ParentControlDesigner.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Protected methodGetHitTestIndicates whether a mouse click at the specified point should be handled by the control. (Overrides ControlDesigner.GetHitTest(Point).)
Protected methodGetParentForComponentUsed 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.)
Protected methodGetServiceAttempts to retrieve the specified type of service from the design mode site of the designer's component. (Inherited from ComponentDesigner.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodGetUpdatedRectUpdates the position of the specified rectangle, adjusting it for grid alignment if grid alignment mode is enabled. (Inherited from ParentControlDesigner.)
Protected methodHookChildControlsRoutes messages from the child controls of the specified control to the designer. (Inherited from ControlDesigner.)
Public methodInitializeInitializes the designer with the specified component. (Inherited from ParentControlDesigner.)
Public methodInitializeExistingComponentRe-initializes an existing component. (Inherited from ControlDesigner.)
Public methodInitializeNewComponentInitializes a newly created component. (Inherited from ParentControlDesigner.)
Public methodInitializeNonDefault Obsolete. Initializes the settings for an imported component that is already initialized to settings other than the defaults. (Inherited from ComponentDesigner.)
Public methodInternalControlDesignerReturns the internal control designer with the specified index in the ControlDesigner. (Inherited from ControlDesigner.)
Protected methodInvokeGetInheritanceAttributeGets the InheritanceAttribute of the specified ComponentDesigner. (Inherited from ComponentDesigner.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodNumberOfInternalControlDesignersReturns the number of internal control designers in the ControlDesigner. (Inherited from ControlDesigner.)
Protected methodOnContextMenuShows the context menu and provides an opportunity to perform additional processing when the context menu is about to be displayed. (Inherited from ControlDesigner.)
Protected methodOnCreateHandleProvides an opportunity to perform additional processing immediately after the control handle has been created. (Inherited from ControlDesigner.)
Protected methodOnDragCompleteCalled in order to clean up a drag-and-drop operation. (Inherited from ParentControlDesigner.)
Protected methodOnDragDropCalled when a drag-and-drop object is dropped onto the control designer view. (Inherited from ParentControlDesigner.)
Protected methodOnDragEnterCalled when a drag-and-drop operation enters the control designer view. (Inherited from ParentControlDesigner.)
Protected methodOnDragLeaveCalled when a drag-and-drop operation leaves the control designer view. (Inherited from ParentControlDesigner.)
Protected methodOnDragOverCalled when a drag-and-drop object is dragged over the control designer view. (Inherited from ParentControlDesigner.)
Protected methodOnGiveFeedbackReceives a call when a drag-and-drop operation is in progress to provide visual cues based on the location of the mouse while a drag operation is in progress. (Inherited from ControlDesigner.)
Protected methodOnMouseDragBeginCalled in response to the left mouse button being pressed and held while over the component. (Inherited from ParentControlDesigner.)
Protected methodOnMouseDragEndCalled at the end of a drag-and-drop operation to complete or cancel the operation. (Inherited from ParentControlDesigner.)
Protected methodOnMouseDragMoveCalled for each movement of the mouse during a drag-and-drop operation. (Inherited from ParentControlDesigner.)
Protected methodOnMouseEnterReceives a call when the mouse first enters the control. (Inherited from ControlDesigner.)
Protected methodOnMouseHoverReceives a call after the mouse hovers over the control. (Inherited from ControlDesigner.)
Protected methodOnMouseLeaveReceives a call when the mouse first enters the control. (Inherited from ControlDesigner.)
Protected methodOnPaintAdornmentsCalled when the control that the designer is managing has painted its surface so the designer can paint any additional adornments on top of the control. (Inherited from ParentControlDesigner.)
Public methodOnSetComponentDefaults Obsolete. Called when the designer is intialized. (Inherited from ControlDesigner.)
Protected methodOnSetCursorProvides an opportunity to change the current mouse cursor. (Inherited from ParentControlDesigner.)
Protected methodPostFilterAttributesAllows a designer to change or remove items from the set of attributes that it exposes through a TypeDescriptor. (Inherited from ComponentDesigner.)
Protected methodPostFilterEventsAllows a designer to change or remove items from the set of events that it exposes through a TypeDescriptor. (Inherited from ComponentDesigner.)
Protected methodPostFilterPropertiesAllows a designer to change or remove items from the set of properties that it exposes through a TypeDescriptor. (Inherited from ComponentDesigner.)
Protected methodPreFilterAttributesAllows a designer to add to the set of attributes that it exposes through a TypeDescriptor. (Inherited from ComponentDesigner.)
Protected methodPreFilterEventsAllows a designer to add to the set of events that it exposes through a TypeDescriptor. (Inherited from ComponentDesigner.)
Protected methodPreFilterPropertiesAdjusts the set of properties the component will expose through a TypeDescriptor. (Inherited from ParentControlDesigner.)
Protected methodRaiseComponentChangedNotifies the IComponentChangeService that this component has been changed. (Inherited from ComponentDesigner.)
Protected methodRaiseComponentChangingNotifies the IComponentChangeService that this component is about to be changed. (Inherited from ComponentDesigner.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Protected methodUnhookChildControlsRoutes messages for the children of the specified control to each control rather than to a parent designer. (Inherited from ControlDesigner.)
Protected methodWndProcProcesses Windows messages and passes WM_HSCROLL and WM_VSCROLL messages to the control at design time. (Overrides ControlDesigner.WndProc(Message).)
Top

  NameDescription
Protected fieldaccessibilityObjSpecifies the accessibility object for the designer. (Inherited from ControlDesigner.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIDesignerFilter.PostFilterAttributesFor a description of this member, see the IDesignerFilter.PostFilterAttributes method. (Inherited from ComponentDesigner.)
Explicit interface implemetationPrivate methodIDesignerFilter.PostFilterEventsFor a description of this member, see the IDesignerFilter.PostFilterEvents method. (Inherited from ComponentDesigner.)
Explicit interface implemetationPrivate methodIDesignerFilter.PostFilterPropertiesFor a description of this member, see the IDesignerFilter.PostFilterProperties method. (Inherited from ComponentDesigner.)
Explicit interface implemetationPrivate methodIDesignerFilter.PreFilterAttributesFor a description of this member, see the IDesignerFilter.PreFilterAttributes method. (Inherited from ComponentDesigner.)
Explicit interface implemetationPrivate methodIDesignerFilter.PreFilterEventsFor a description of this member, see the IDesignerFilter.PreFilterEvents method. (Inherited from ComponentDesigner.)
Explicit interface implemetationPrivate methodIDesignerFilter.PreFilterPropertiesFor a description of this member, see the IDesignerFilter.PreFilterProperties method. (Inherited from ComponentDesigner.)
Explicit interface implemetationPrivate propertyITreeDesigner.ChildrenFor a description of this member, see the ITreeDesigner.Children property. (Inherited from ComponentDesigner.)
Explicit interface implemetationPrivate propertyITreeDesigner.ParentFor a description of this member, see the ITreeDesigner.Parent property. (Inherited from ComponentDesigner.)
Top

ScrollableControlDesigner provides a base class for designers of controls that respond to scroll messages. In addition to the methods and functionality inherited from the ParentControlDesigner, ControlDesigner, and ComponentDesigner classes, ScrollableControlDesigner provides a WndProc method override that passes WM_HSCROLL and WM_VSCROLL messages to the control at design time.

NoteNote

If a form has its AutoScroll property set to active, the scroll bars are always active in the design-time environment.

You can associate a designer with a type using a DesignerAttribute. For an overview of customizing design time behavior, see Extending Design-Time Support.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft