Export (0) Print
Expand All

Shape Class

Implements the basic functionality common to line and shape controls.

Namespace:  Microsoft.VisualBasic.PowerPacks
Assembly:  Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)

public abstract class Shape : Component

The Shape type exposes the following members.

  NameDescription
Protected methodShape()Initializes a new instance of the Shape class.
Protected methodShape(ShapeContainer)Initializes a new instance of the Shape class.
Top

  NameDescription
Public propertyAccessibilityObjectGets the AccessibleObject that is assigned to the control.
Public propertyAccessibleDefaultActionDescriptionGets or sets the default action description of the control for use by accessibility client applications.
Public propertyAccessibleDescriptionGets or sets the description of the control that is used by accessibility client applications.
Public propertyAccessibleNameGets or sets the name of the control that is used by accessibility client applications.
Public propertyAccessibleRoleGets or sets the accessible role of the control.
Public propertyAnchorGets or sets the edges of the container to which a shape is bound, and determines how a shape is resized when its parent is resized.
Public propertyBorderColorGets or sets the color of the border of a shape or line control.
Public propertyBorderStyleGets or sets the border style for a shape or line control.
Public propertyBorderWidthGets or sets the width of a line or shape control's border.
Public propertyCanFocusGets a value indicating whether a line or shape control can receive focus.
Protected propertyCanRaiseEventsGets a value indicating whether the component can raise an event. (Inherited from Component.)
Public propertyCanSelectGets a value indicating whether a line or shape control can be selected.
Public propertyContainerGets the IContainer that contains the Component.
Public propertyContainsFocusGets a value indicating whether a line or shape control currently has the input focus.
Public propertyContextMenuGets or sets the shortcut menu associated with a line or shape control.
Public propertyContextMenuStripGets or sets the ContextMenuStrip associated with a line or shape control.
Public propertyCreatedGets a value indicating whether a line or shape control has been created.
Public propertyCursorGets or sets the cursor that is displayed when the mouse pointer is resting on a line or shape control.
Public propertyStatic memberDefaultBorderColorGets the default border color for a line or shape control.
Protected propertyDesignModeGets a value that indicates whether the Component is currently in design mode. (Inherited from Component.)
Public propertyDisposingGets a value indicating whether the base Shape class is disposing.
Public propertyEnabledGets or sets a value indicating whether a line or shape control can respond to user interaction.
Protected propertyEventsGets the list of event handlers that are attached to this Component. (Inherited from Component.)
Public propertyFocusedGets a value indicating whether a line or shape control currently has the input focus.
Public propertyIsAccessibleGets or sets a value indicating whether a line or shape control is available to accessibility applications.
Public propertyIsDisposedGets a value indicating whether a line or shape control has been disposed of.
Public propertyStatic memberModifierKeysGets a value indicating which of the modifier keys (SHIFT, CTRL, and ALT) is in a pressed state.
Public propertyStatic memberMouseButtonsGets a value indicating which of the mouse buttons is in a pressed state.
Public propertyStatic memberMousePositionGets the position of the pointer in screen coordinates.
Public propertyNameGets or sets the name of a line or shape control.
Public propertyParentGets or sets the parent container of a line or shape control.
Public propertyRegionGets or sets the window region associated with a line or shape control.
Public propertySelectionColorGets or sets the selection color of a shape.
Public propertySiteGets or sets the ISite of the Component. (Inherited from Component.)
Public propertyTagGets or sets the object that contains data about a line or shape control.
Public propertyUseWaitCursorGets or sets a value indicating whether to use the wait cursor for the current line or shape control.
Public propertyVisibleGets or sets a value indicating whether a line or shape control is displayed.
Top

  NameDescription
Public methodBringToFrontBrings a line or shape control to the front of the z-order.
Protected methodCreateAccessibilityInstanceCreates a new accessibility object for a line or shape control.
Public methodCreateObjRefSecurity Critical. Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public methodDispose()Releases all resources used by the Component. (Inherited from Component.)
Protected methodDispose(Boolean)Releases the unmanaged resources used by a line or shape control and optionally releases the managed resources. (Overrides Component.Dispose(Boolean).)
Public methodDrawToBitmapSupports rendering to the specified bitmap.
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeReleases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Public methodFindFormRetrieves the form that a line or shape control is on.
Public methodFocusSets input focus to a line or shape control.
Public methodGetContainerControlReturns the next ContainerControl up in a line or shape control's chain of parent controls.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetLifetimeServiceSecurity Critical. Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected methodGetServiceReturns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodHideConceals a line or shape control from the user.
Public methodHitTestGets information about a line or shape control at the specified position on the screen.
Public methodInitializeLifetimeServiceSecurity Critical. Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public methodInvalidateInvalidates a specific region of a line or shape control and causes a paint message to be sent to the control.
Public methodStatic memberIsKeyLockedDetermines whether the CAPS LOCK, NUM LOCK, or SCROLL LOCK key is in effect.
Protected methodMemberwiseClone()Creates a shallow copy of the current Object. (Inherited from Object.)
Protected methodMemberwiseClone(Boolean)Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.)
Protected methodOnClickRaises the Click event.
Protected methodOnContextMenuChangedRaises the ContextMenuChanged event.
Protected methodOnContextMenuStripChangedRaises the ContextMenuStripChanged event.
Protected methodOnCursorChangedRaises the CursorChanged event.
Protected methodOnDoubleClickRaises the DoubleClick event.
Protected methodOnEnabledChangedRaises the EnabledChanged event.
Protected methodOnEnterRaises the Enter event.
Protected methodOnGotFocusRaises the GotFocus event.
Protected methodOnInvalidatedRaises the Invalidated event.
Protected methodOnKeyDownRaises the KeyDown event.
Protected methodOnKeyPressRaises the KeyPress event.
Protected methodOnKeyUpRaises the KeyUp event.
Protected methodOnLeaveRaises the Leave event.
Protected methodOnLostFocusRaises the LostFocus event.
Protected methodOnMouseClickRaises the MouseClick event.
Protected methodOnMouseDoubleClickRaises the MouseDoubleClick event.
Protected methodOnMouseDownRaises the MouseDown event.
Protected methodOnMouseEnterRaises the MouseEnter event.
Protected methodOnMouseHoverRaises the MouseHover event.
Protected methodOnMouseLeaveRaises the MouseLeave event.
Protected methodOnMouseMoveRaises the MouseMove event.
Protected methodOnMouseUpRaises the MouseUp event.
Protected methodOnMouseWheelRaises the MouseWheel event.
Protected methodOnMoveRaises the Move event.
Protected methodOnPaintRaises the Paint event.
Protected methodOnParentChangedRaises the ParentChanged event.
Protected methodOnPreviewKeyDownRaises the PreviewKeyDown event.
Protected methodOnQueryAccessibilityHelpRaises the QueryAccessibilityHelp event.
Protected methodOnRegionChangedRaises the RegionChanged event.
Protected methodOnVisibleChangedRaises the VisibleChanged event.
Public methodPointToClientComputes the location of the specified screen point into client coordinates.
Public methodPointToScreenComputes the location of the specified client point into screen coordinates.
Public methodRectangleToClientComputes the size and location of the specified screen rectangle in client coordinates.
Public methodRectangleToScreenComputes the size and location of the specified client rectangle in screen coordinates.
Public methodRefreshForces a control to invalidate its client area and immediately redraw itself and any child controls.
Public methodResumePaintResumes usual painting logic, optionally forcing an immediate layout of pending paint requests.
Public methodScaleScales a shape by the specified scaling factor.
Public methodSelectEnables a control.
Public methodSendToBackSends a line or shape control to the back of the z-order.
Public methodShowDisplays a shape to the user.
Public methodSuspendPaintSuspends the painting logic for a shape.
Public methodToStringReturns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.)
Public methodUpdateCauses the control to redraw the invalidated regions within its client area.
Top

  NameDescription
Public eventChangeUICuesOccurs when the focus or keyboard user interface (UI) cues change.
Public eventClickOccurs when the shape is clicked.
Public eventContextMenuChangedOccurs when the value of the ContextMenu property changes.
Public eventContextMenuStripChangedOccurs when the value of the ContextMenuStrip property changes.
Public eventCursorChangedOccurs when the value of the Cursor property changes.
Public eventDisposedOccurs when the component is disposed by a call to the Dispose method. (Inherited from Component.)
Public eventDoubleClickOccurs when the shape is double-clicked.
Public eventEnabledChangedOccurs when the Enabled property value has changed.
Public eventEnterOccurs when the shape is entered.
Public eventGotFocusOccurs when the shape receives focus.
Public eventInvalidatedOccurs when a shape's display requires redrawing.
Public eventKeyDownOccurs when a key is pressed and the shape has focus.
Public eventKeyPressOccurs when a key is pressed and the shape has focus.
Public eventKeyUpOccurs when a key is released and the shape has focus.
Public eventLeaveOccurs when the input focus leaves the shape.
Public eventLostFocusOccurs when the shape loses focus.
Public eventMouseClickOccurs when the shape is clicked by the mouse.
Public eventMouseDoubleClickOccurs when the shape is double-clicked by the mouse.
Public eventMouseDownOccurs when the mouse pointer is over the shape and a mouse button is pressed.
Public eventMouseEnterOccurs when the mouse pointer enters the shape.
Public eventMouseHoverOccurs when the mouse pointer rests on the shape.
Public eventMouseLeaveOccurs when the mouse pointer leaves the shape.
Public eventMouseMoveOccurs when the mouse pointer is moved over the shape.
Public eventMouseUpOccurs when the mouse pointer is over the shape and a mouse button is released.
Public eventMouseWheelOccurs when the mouse wheel moves and the shape has focus.
Public eventMoveOccurs when the shape is moved.
Public eventPaintOccurs when the shape is redrawn.
Public eventParentChangedOccurs when the Parent property value changes.
Public eventPreviewKeyDownOccurs before the KeyDown event when a key is pressed and focus is on the shape.
Public eventQueryAccessibilityHelpOccurs when an AccessibleObject is providing Help to accessibility applications.
Public eventRegionChangedOccurs when the value of the Region property changes.
Public eventVisibleChangedOccurs when the Visible property value changes.
Top

You do not typically inherit from Shape. To create your own line or shape class, inherit from the LineShape or the SimpleShape class.

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