Shape Class

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

NameDescription
System_CAPS_protmethodShape()

Initializes a new instance of the Shape class.

System_CAPS_protmethodShape(ShapeContainer)

Initializes a new instance of the Shape class.

NameDescription
System_CAPS_pubpropertyAccessibilityObject

Gets the AccessibleObject that is assigned to the control.

System_CAPS_pubpropertyAccessibleDefaultActionDescription

Gets or sets the default action description of the control for use by accessibility client applications.

System_CAPS_pubpropertyAccessibleDescription

Gets or sets the description of the control that is used by accessibility client applications.

System_CAPS_pubpropertyAccessibleName

Gets or sets the name of the control that is used by accessibility client applications.

System_CAPS_pubpropertyAccessibleRole

Gets or sets the accessible role of the control.

System_CAPS_pubpropertyAnchor

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

System_CAPS_pubpropertyBorderColor

Gets or sets the color of the border of a shape or line control.

System_CAPS_pubpropertyBorderStyle

Gets or sets the border style for a shape or line control.

System_CAPS_pubpropertyBorderWidth

Gets or sets the width of a line or shape control's border.

System_CAPS_pubpropertyCanFocus

Gets a value indicating whether a line or shape control can receive focus.

System_CAPS_protpropertyCanRaiseEvents

(Inherited from Component.)

System_CAPS_pubpropertyCanSelect

Gets a value indicating whether a line or shape control can be selected.

System_CAPS_pubpropertyContainer

Gets the IContainer that contains the Component.

System_CAPS_pubpropertyContainsFocus

Gets a value indicating whether a line or shape control currently has the input focus.

System_CAPS_pubpropertyContextMenu

Gets or sets the shortcut menu associated with a line or shape control.

System_CAPS_pubpropertyContextMenuStrip

Gets or sets the ContextMenuStrip associated with a line or shape control.

System_CAPS_pubpropertyCreated

Gets a value indicating whether a line or shape control has been created.

System_CAPS_pubpropertyCursor

Gets or sets the cursor that is displayed when the mouse pointer is resting on a line or shape control.

System_CAPS_pubpropertySystem_CAPS_staticDefaultBorderColor

Gets the default border color for a line or shape control.

System_CAPS_protpropertyDesignMode

(Inherited from Component.)

System_CAPS_pubpropertyDisposing

Gets a value indicating whether the base Shape class is disposing.

System_CAPS_pubpropertyEnabled

Gets or sets a value indicating whether a line or shape control can respond to user interaction.

System_CAPS_protpropertyEvents

(Inherited from Component.)

System_CAPS_pubpropertyFocused

Gets a value indicating whether a line or shape control currently has the input focus.

System_CAPS_pubpropertyIsAccessible

Gets or sets a value indicating whether a line or shape control is available to accessibility applications.

System_CAPS_pubpropertyIsDisposed

Gets a value indicating whether a line or shape control has been disposed of.

System_CAPS_pubpropertySystem_CAPS_staticModifierKeys

Gets a value indicating which of the modifier keys (SHIFT, CTRL, and ALT) is in a pressed state.

System_CAPS_pubpropertySystem_CAPS_staticMouseButtons

Gets a value indicating which of the mouse buttons is in a pressed state.

System_CAPS_pubpropertySystem_CAPS_staticMousePosition

Gets the position of the pointer in screen coordinates.

System_CAPS_pubpropertyName

Gets or sets the name of a line or shape control.

System_CAPS_pubpropertyParent

Gets or sets the parent container of a line or shape control.

System_CAPS_pubpropertyRegion

Gets or sets the window region associated with a line or shape control.

System_CAPS_pubpropertySelectionColor

Gets or sets the selection color of a shape.

System_CAPS_pubpropertySite

(Inherited from Component.)

System_CAPS_pubpropertyTag

Gets or sets the object that contains data about a line or shape control.

System_CAPS_pubpropertyUseWaitCursor

Gets or sets a value indicating whether to use the wait cursor for the current line or shape control.

System_CAPS_pubpropertyVisible

Gets or sets a value indicating whether a line or shape control is displayed.

NameDescription
System_CAPS_pubmethodBringToFront()

Brings a line or shape control to the front of the z-order.

System_CAPS_protmethodCreateAccessibilityInstance()

Creates a new accessibility object for a line or shape control.

System_CAPS_pubmethodCreateObjRef(Type)

(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodDispose()

(Inherited from Component.)

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by a line or shape control and optionally releases the managed resources.(Overrides Component.Dispose(Boolean).)

System_CAPS_pubmethodDrawToBitmap(Bitmap, Rectangle)

Supports rendering to the specified bitmap.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Component.)

System_CAPS_pubmethodFindForm()

Retrieves the form that a line or shape control is on.

System_CAPS_pubmethodFocus()

Sets input focus to a line or shape control.

System_CAPS_pubmethodGetContainerControl()

Returns the next ContainerControl up in a line or shape control's chain of parent controls.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetLifetimeService()

(Inherited from MarshalByRefObject.)

System_CAPS_protmethodGetService(Type)

(Inherited from Component.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodHide()

Conceals a line or shape control from the user.

System_CAPS_pubmethodHitTest(Int32, Int32)

Gets information about a line or shape control at the specified position on the screen.

System_CAPS_pubmethodInitializeLifetimeService()

(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodInvalidate()

Invalidates a specific region of a line or shape control and causes a paint message to be sent to the control.

System_CAPS_pubmethodSystem_CAPS_staticIsKeyLocked(Keys)

Determines whether the CAPS LOCK, NUM LOCK, or SCROLL LOCK key is in effect.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone(Boolean)

(Inherited from MarshalByRefObject.)

System_CAPS_protmethodOnClick(EventArgs)

Raises the Click event.

System_CAPS_protmethodOnContextMenuChanged(EventArgs)

Raises the ContextMenuChanged event.

System_CAPS_protmethodOnContextMenuStripChanged(EventArgs)

Raises the ContextMenuStripChanged event.

System_CAPS_protmethodOnCursorChanged(EventArgs)

Raises the CursorChanged event.

System_CAPS_protmethodOnDoubleClick(EventArgs)

Raises the DoubleClick event.

System_CAPS_protmethodOnEnabledChanged(EventArgs)

Raises the EnabledChanged event.

System_CAPS_protmethodOnEnter(EventArgs)

Raises the Enter event.

System_CAPS_protmethodOnGotFocus(EventArgs)

Raises the GotFocus event.

System_CAPS_protmethodOnInvalidated(InvalidateEventArgs)

Raises the Invalidated event.

System_CAPS_protmethodOnKeyDown(KeyEventArgs)

Raises the KeyDown event.

System_CAPS_protmethodOnKeyPress(KeyPressEventArgs)

Raises the KeyPress event.

System_CAPS_protmethodOnKeyUp(KeyEventArgs)

Raises the KeyUp event.

System_CAPS_protmethodOnLeave(EventArgs)

Raises the Leave event.

System_CAPS_protmethodOnLostFocus(EventArgs)

Raises the LostFocus event.

System_CAPS_protmethodOnMouseClick(MouseEventArgs)

Raises the MouseClick event.

System_CAPS_protmethodOnMouseDoubleClick(MouseEventArgs)

Raises the MouseDoubleClick event.

System_CAPS_protmethodOnMouseDown(MouseEventArgs)

Raises the MouseDown event.

System_CAPS_protmethodOnMouseEnter(EventArgs)

Raises the MouseEnter event.

System_CAPS_protmethodOnMouseHover(EventArgs)

Raises the MouseHover event.

System_CAPS_protmethodOnMouseLeave(EventArgs)

Raises the MouseLeave event.

System_CAPS_protmethodOnMouseMove(MouseEventArgs)

Raises the MouseMove event.

System_CAPS_protmethodOnMouseUp(MouseEventArgs)

Raises the MouseUp event.

System_CAPS_protmethodOnMouseWheel(MouseEventArgs)

Raises the MouseWheel event.

System_CAPS_protmethodOnMove(EventArgs)

Raises the Move event.

System_CAPS_protmethodOnPaint(PaintEventArgs)

Raises the Paint event.

System_CAPS_protmethodOnParentChanged(EventArgs)

Raises the ParentChanged event.

System_CAPS_protmethodOnPreviewKeyDown(PreviewKeyDownEventArgs)

Raises the PreviewKeyDown event.

System_CAPS_protmethodOnQueryAccessibilityHelp(QueryAccessibilityHelpEventArgs)

Raises the QueryAccessibilityHelp event.

System_CAPS_protmethodOnRegionChanged(EventArgs)

Raises the RegionChanged event.

System_CAPS_protmethodOnVisibleChanged(EventArgs)

Raises the VisibleChanged event.

System_CAPS_pubmethodPointToClient(Point)

Computes the location of the specified screen point into client coordinates.

System_CAPS_pubmethodPointToScreen(Point)

Computes the location of the specified client point into screen coordinates.

System_CAPS_pubmethodRectangleToClient(Rectangle)

Computes the size and location of the specified screen rectangle in client coordinates.

System_CAPS_pubmethodRectangleToScreen(Rectangle)

Computes the size and location of the specified client rectangle in screen coordinates.

System_CAPS_pubmethodRefresh()

Forces a control to invalidate its client area and immediately redraw itself and any child controls.

System_CAPS_pubmethodResumePaint(Boolean)

Resumes usual painting logic, optionally forcing an immediate layout of pending paint requests.

System_CAPS_pubmethodScale(SizeF)

Scales a shape by the specified scaling factor.

System_CAPS_pubmethodSelect()

Enables a control.

System_CAPS_pubmethodSendToBack()

Sends a line or shape control to the back of the z-order.

System_CAPS_pubmethodShow()

Displays a shape to the user.

System_CAPS_pubmethodSuspendPaint()

Suspends the painting logic for a shape.

System_CAPS_pubmethodToString()

(Inherited from Component.)

System_CAPS_pubmethodUpdate()

Causes the control to redraw the invalidated regions within its client area.

NameDescription
System_CAPS_pubeventChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

System_CAPS_pubeventClick

Occurs when the shape is clicked.

System_CAPS_pubeventContextMenuChanged

Occurs when the value of the ContextMenu property changes.

System_CAPS_pubeventContextMenuStripChanged

Occurs when the value of the ContextMenuStrip property changes.

System_CAPS_pubeventCursorChanged

Occurs when the value of the Cursor property changes.

System_CAPS_pubeventDisposed

(Inherited from Component.)

System_CAPS_pubeventDoubleClick

Occurs when the shape is double-clicked.

System_CAPS_pubeventEnabledChanged

Occurs when the Enabled property value has changed.

System_CAPS_pubeventEnter

Occurs when the shape is entered.

System_CAPS_pubeventGotFocus

Occurs when the shape receives focus.

System_CAPS_pubeventInvalidated

Occurs when a shape's display requires redrawing.

System_CAPS_pubeventKeyDown

Occurs when a key is pressed and the shape has focus.

System_CAPS_pubeventKeyPress

Occurs when a key is pressed and the shape has focus.

System_CAPS_pubeventKeyUp

Occurs when a key is released and the shape has focus.

System_CAPS_pubeventLeave

Occurs when the input focus leaves the shape.

System_CAPS_pubeventLostFocus

Occurs when the shape loses focus.

System_CAPS_pubeventMouseClick

Occurs when the shape is clicked by the mouse.

System_CAPS_pubeventMouseDoubleClick

Occurs when the shape is double-clicked by the mouse.

System_CAPS_pubeventMouseDown

Occurs when the mouse pointer is over the shape and a mouse button is pressed.

System_CAPS_pubeventMouseEnter

Occurs when the mouse pointer enters the shape.

System_CAPS_pubeventMouseHover

Occurs when the mouse pointer rests on the shape.

System_CAPS_pubeventMouseLeave

Occurs when the mouse pointer leaves the shape.

System_CAPS_pubeventMouseMove

Occurs when the mouse pointer is moved over the shape.

System_CAPS_pubeventMouseUp

Occurs when the mouse pointer is over the shape and a mouse button is released.

System_CAPS_pubeventMouseWheel

Occurs when the mouse wheel moves and the shape has focus.

System_CAPS_pubeventMove

Occurs when the shape is moved.

System_CAPS_pubeventPaint

Occurs when the shape is redrawn.

System_CAPS_pubeventParentChanged

Occurs when the Parent property value changes.

System_CAPS_pubeventPreviewKeyDown

Occurs before the KeyDown event when a key is pressed and focus is on the shape.

System_CAPS_pubeventQueryAccessibilityHelp

Occurs when an AccessibleObject is providing Help to accessibility applications.

System_CAPS_pubeventRegionChanged

Occurs when the value of the Region property changes.

System_CAPS_pubeventVisibleChanged

Occurs when the Visible property value changes.

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.

Return to top
Show:
© 2016 Microsoft