SimpleShape Class
Implements the basic functionality that is common to OvalShape and RectangleShape controls.
Namespace: Microsoft.VisualBasic.PowerPacks
Assembly: Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)
Inheritance Hierarchy
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
Microsoft.VisualBasic.PowerPacks.Shape
Microsoft.VisualBasic.PowerPacks.SimpleShape
Microsoft.VisualBasic.PowerPacks.OvalShape
Microsoft.VisualBasic.PowerPacks.RectangleShape
Syntax
public abstract class SimpleShape : Shape
public ref class SimpleShape abstract : Shape
[<AbstractClass>]
type SimpleShape =
class
inherit Shape
end
Public MustInherit Class SimpleShape
Inherits Shape
Constructors
Name | Description | |
---|---|---|
SimpleShape() | Initializes a new instance of the SimpleShape class. |
|
SimpleShape(Int32, Int32, Int32, Int32) | Initializes a new instance of the SimpleShape class, specifying its size and location. |
|
SimpleShape(ShapeContainer) | Initializes a new instance of the SimpleShape class, specifying a ShapeContainer as its parent. |
Properties
Name | Description | |
---|---|---|
AccessibilityObject | Gets the AccessibleObject that is assigned to the control.(Inherited from Shape.) |
|
AccessibleDefaultActionDescription | Gets or sets the default action description of the control for use by accessibility client applications.(Inherited from Shape.) |
|
AccessibleDescription | Gets or sets the description of the control that is used by accessibility client applications.(Inherited from Shape.) |
|
AccessibleName | Gets or sets the name of the control that is used by accessibility client applications.(Inherited from Shape.) |
|
AccessibleRole | Gets or sets the accessible role of the control.(Inherited from Shape.) |
|
Anchor | 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.(Inherited from Shape.) |
|
BackColor | Gets or sets the background color for the shape. |
|
BackgroundImage | Gets or sets the image displayed in the shape. |
|
BackgroundImageLayout | Gets or sets the background image layout as defined in the ImageLayout enumeration. |
|
BackStyle | Gets or sets the transparency of the shape. |
|
BorderColor | Gets or sets the color of the border of a shape or line control.(Inherited from Shape.) |
|
BorderStyle | Gets or sets the border style for a shape or line control. (Inherited from Shape.) |
|
BorderWidth | Gets or sets the width of the shape control's border.(Overrides Shape.BorderWidth.) |
|
Bottom | Gets the distance, in pixels, between the bottom edge of the shape and the top edge of its container's client area. |
|
Bounds | Gets or sets the size and location of the shape in pixels, relative to the parent control. |
|
CanFocus | Gets a value indicating whether a line or shape control can receive focus.(Inherited from Shape.) |
|
CanRaiseEvents | (Inherited from Component.) |
|
CanSelect | Gets a value indicating whether a line or shape control can be selected.(Inherited from Shape.) |
|
ClientRectangle | Gets the rectangle that represents the client area of the shape. |
|
ClientSize | Gets or sets the height and width of the client area of the shape. |
|
Container | Gets the IContainer that contains the Component.(Inherited from Shape.) |
|
ContainsFocus | Gets a value indicating whether a line or shape control currently has the input focus.(Inherited from Shape.) |
|
ContextMenu | Gets or sets the shortcut menu associated with a line or shape control.(Inherited from Shape.) |
|
ContextMenuStrip | Gets or sets the ContextMenuStrip associated with a line or shape control.(Inherited from Shape.) |
|
Created | Gets a value indicating whether a line or shape control has been created.(Inherited from Shape.) |
|
Cursor | Gets or sets the cursor that is displayed when the mouse pointer is resting on a line or shape control.(Inherited from Shape.) |
|
DefaultBackColor | Gets the default background color of the shape. |
|
DefaultFillColor | Gets the default fill color of the shape. |
|
DefaultFillGradientColor | Gets the default fill gradient color of the shape. |
|
DesignMode | (Inherited from Component.) |
|
DisplayRectangle | Gets the rectangle that represents the display area of the shape. |
|
Disposing | Gets a value indicating whether the base Shape class is disposing.(Inherited from Shape.) |
|
Enabled | Gets or sets a value indicating whether a line or shape control can respond to user interaction.(Inherited from Shape.) |
|
Events | (Inherited from Component.) |
|
FillColor | Gets or sets the color that is used to fill the shape. |
|
FillGradientColor | Gets or sets the gradient color that is used to fill the shape. |
|
FillGradientStyle | Gets or sets the gradient style that is used to fill the shape. |
|
FillStyle | Gets or sets the pattern used to fill the shape. |
|
Focused | Gets a value indicating whether a line or shape control currently has the input focus.(Inherited from Shape.) |
|
Height | Gets or sets the height of the shape. |
|
IsAccessible | Gets or sets a value indicating whether a line or shape control is available to accessibility applications.(Inherited from Shape.) |
|
IsDisposed | Gets a value indicating whether a line or shape control has been disposed of.(Inherited from Shape.) |
|
Left | Gets or sets the distance, in pixels, between the left edge of the shape and the left edge of its container's client area. |
|
Location | Gets or sets the coordinates of the upper-left corner of the shape relative to the upper-left corner of its container. |
|
Name | Gets or sets the name of a line or shape control.(Inherited from Shape.) |
|
Parent | Gets or sets the parent container of a line or shape control.(Inherited from Shape.) |
|
Region | Gets or sets the window region associated with a line or shape control.(Inherited from Shape.) |
|
Right | Gets the distance, in pixels, between the right edge of the shape and the left edge of its container's client area. |
|
SelectionColor | Gets or sets the selection color of a shape.(Inherited from Shape.) |
|
Site | (Inherited from Component.) |
|
Size | Gets or sets the height and width of the shape. |
|
Tag | Gets or sets the object that contains data about a line or shape control.(Inherited from Shape.) |
|
Top | Gets or sets the distance, in pixels, between the top edge of the shape and the left edge of its container's client area. |
|
UseWaitCursor | Gets or sets a value indicating whether to use the wait cursor for the current line or shape control.(Inherited from Shape.) |
|
Visible | Gets or sets a value indicating whether a line or shape control is displayed.(Inherited from Shape.) |
|
Width | Gets or sets the width of the shape. |
Methods
Name | Description | |
---|---|---|
BringToFront() | Brings a line or shape control to the front of the z-order.(Inherited from Shape.) |
|
CreateAccessibilityInstance() | Creates a new accessibility object for the shape control.(Overrides Shape.CreateAccessibilityInstance().) |
|
CreateObjRef(Type) | (Inherited from MarshalByRefObject.) |
|
Dispose() | (Inherited from Component.) |
|
Dispose(Boolean) | Releases the unmanaged resources used by a line or shape control and optionally releases the managed resources.(Inherited from Shape.) |
|
DrawToBitmap(Bitmap, Rectangle) | Supports rendering to the specified bitmap.(Overrides Shape.DrawToBitmap(Bitmap, Rectangle).) |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Component.) |
|
FindForm() | Retrieves the form that a line or shape control is on.(Inherited from Shape.) |
|
Focus() | Sets input focus to a line or shape control.(Inherited from Shape.) |
|
GetContainerControl() | Returns the next ContainerControl up in a line or shape control's chain of parent controls.(Inherited from Shape.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetLifetimeService() | (Inherited from MarshalByRefObject.) |
|
GetService(Type) | (Inherited from Component.) |
|
GetType() | (Inherited from Object.) |
|
Hide() | Conceals a line or shape control from the user.(Inherited from Shape.) |
|
HitTest(Int32, Int32) | Determines whether a shape control is located at the specified point on the screen.(Overrides Shape.HitTest(Int32, Int32).) |
|
InitializeLifetimeService() | (Inherited from MarshalByRefObject.) |
|
Invalidate() | Invalidates a specific region of a line or shape control and causes a paint message to be sent to the control.(Inherited from Shape.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
MemberwiseClone(Boolean) | (Inherited from MarshalByRefObject.) |
|
OnBackColorChanged(EventArgs) | Raises the BackColorChanged event. |
|
OnBackgroundImageChanged(EventArgs) | Raises the BackgroundImageChanged event. |
|
OnBackgroundImageLayoutChanged(EventArgs) | Raises the BackgroundImageLayoutChanged event. |
|
OnClick(EventArgs) | ||
OnClientSizeChanged(EventArgs) | Raises the ClientSizeChanged event. |
|
OnContextMenuChanged(EventArgs) | Raises the ContextMenuChanged event.(Inherited from Shape.) |
|
OnContextMenuStripChanged(EventArgs) | Raises the ContextMenuStripChanged event.(Inherited from Shape.) |
|
OnCursorChanged(EventArgs) | Raises the CursorChanged event.(Inherited from Shape.) |
|
OnDoubleClick(EventArgs) | Raises the DoubleClick event.(Inherited from Shape.) |
|
OnEnabledChanged(EventArgs) | Raises the EnabledChanged event.(Inherited from Shape.) |
|
OnEnter(EventArgs) | ||
OnGotFocus(EventArgs) | ||
OnInvalidated(InvalidateEventArgs) | Raises the Invalidated event.(Inherited from Shape.) |
|
OnKeyDown(KeyEventArgs) | ||
OnKeyPress(KeyPressEventArgs) | ||
OnKeyUp(KeyEventArgs) | ||
OnLeave(EventArgs) | ||
OnLocationChanged(EventArgs) | Raises the LocationChanged event. |
|
OnLostFocus(EventArgs) | ||
OnMouseClick(MouseEventArgs) | Raises the MouseClick event.(Inherited from Shape.) |
|
OnMouseDoubleClick(MouseEventArgs) | Raises the MouseDoubleClick event.(Inherited from Shape.) |
|
OnMouseDown(MouseEventArgs) | ||
OnMouseEnter(EventArgs) | Raises the MouseEnter event.(Inherited from Shape.) |
|
OnMouseHover(EventArgs) | Raises the MouseHover event.(Inherited from Shape.) |
|
OnMouseLeave(EventArgs) | Raises the MouseLeave event.(Inherited from Shape.) |
|
OnMouseMove(MouseEventArgs) | ||
OnMouseUp(MouseEventArgs) | ||
OnMouseWheel(MouseEventArgs) | Raises the MouseWheel event.(Inherited from Shape.) |
|
OnMove(EventArgs) | ||
OnPaint(PaintEventArgs) | Raises the Paint event.(Overrides Shape.OnPaint(PaintEventArgs).) |
|
OnParentChanged(EventArgs) | Raises the ParentChanged event.(Inherited from Shape.) |
|
OnPreviewKeyDown(PreviewKeyDownEventArgs) | Raises the PreviewKeyDown event.(Inherited from Shape.) |
|
OnQueryAccessibilityHelp(QueryAccessibilityHelpEventArgs) | Raises the QueryAccessibilityHelp event.(Inherited from Shape.) |
|
OnRegionChanged(EventArgs) | Raises the RegionChanged event.(Inherited from Shape.) |
|
OnResize(EventArgs) | Raises the Resize event. |
|
OnSizeChanged(EventArgs) | Raises the SizeChanged event. |
|
OnVisibleChanged(EventArgs) | Raises the VisibleChanged event.(Inherited from Shape.) |
|
PointToClient(Point) | Computes the location of the specified screen point into client coordinates.(Inherited from Shape.) |
|
PointToScreen(Point) | Computes the location of the specified client point into screen coordinates.(Inherited from Shape.) |
|
RectangleToClient(Rectangle) | Computes the size and location of the specified screen rectangle in client coordinates.(Inherited from Shape.) |
|
RectangleToScreen(Rectangle) | Computes the size and location of the specified client rectangle in screen coordinates.(Inherited from Shape.) |
|
Refresh() | Forces a control to invalidate its client area and immediately redraw itself and any child controls.(Inherited from Shape.) |
|
ResumePaint(Boolean) | Resumes usual painting logic, optionally forcing an immediate layout of pending paint requests.(Inherited from Shape.) |
|
Scale(SizeF) | Scales the shape by the specified scaling factor.(Overrides Shape.Scale(SizeF).) |
|
Select() | Enables a control.(Inherited from Shape.) |
|
SendToBack() | Sends a line or shape control to the back of the z-order.(Inherited from Shape.) |
|
SetBounds(Int32, Int32, Int32, Int32) | Sets the bounds of the shape to the specified location and size. |
|
Show() | Displays a shape to the user.(Inherited from Shape.) |
|
SuspendPaint() | Suspends the painting logic for a shape.(Inherited from Shape.) |
|
ToString() | (Inherited from Component.) |
|
Update() | Causes the control to redraw the invalidated regions within its client area.(Inherited from Shape.) |
Events
Name | Description | |
---|---|---|
BackColorChanged | Occurs when the BackColor property of the shape is changed. |
|
BackgroundImageChanged | Occurs when the BackgroundImage property of a shape is changed. |
|
BackgroundImageLayoutChanged | Occurs when the BackgroundImageLayout property of a shape is changed. |
|
ChangeUICues | Occurs when the focus or keyboard user interface (UI) cues change.(Inherited from Shape.) |
|
Click | Occurs when the shape is clicked.(Inherited from Shape.) |
|
ClientSizeChanged | Occurs when the ClientSize property of a shape is changed. |
|
ContextMenuChanged | Occurs when the value of the ContextMenu property changes.(Inherited from Shape.) |
|
ContextMenuStripChanged | Occurs when the value of the ContextMenuStrip property changes.(Inherited from Shape.) |
|
CursorChanged | Occurs when the value of the Cursor property changes.(Inherited from Shape.) |
|
Disposed | (Inherited from Component.) |
|
DoubleClick | Occurs when the shape is double-clicked.(Inherited from Shape.) |
|
EnabledChanged | Occurs when the Enabled property value has changed.(Inherited from Shape.) |
|
Enter | Occurs when the shape is entered.(Inherited from Shape.) |
|
GotFocus | Occurs when the shape receives focus.(Inherited from Shape.) |
|
Invalidated | Occurs when a shape's display requires redrawing.(Inherited from Shape.) |
|
KeyDown | Occurs when a key is pressed and the shape has focus.(Inherited from Shape.) |
|
KeyPress | Occurs when a key is pressed and the shape has focus.(Inherited from Shape.) |
|
KeyUp | Occurs when a key is released and the shape has focus.(Inherited from Shape.) |
|
Leave | Occurs when the input focus leaves the shape.(Inherited from Shape.) |
|
LocationChanged | Occurs when the Location property of a shape is changed. |
|
LostFocus | Occurs when the shape loses focus.(Inherited from Shape.) |
|
MouseClick | Occurs when the shape is clicked by the mouse.(Inherited from Shape.) |
|
MouseDoubleClick | Occurs when the shape is double-clicked by the mouse.(Inherited from Shape.) |
|
MouseDown | Occurs when the mouse pointer is over the shape and a mouse button is pressed.(Inherited from Shape.) |
|
MouseEnter | Occurs when the mouse pointer enters the shape.(Inherited from Shape.) |
|
MouseHover | Occurs when the mouse pointer rests on the shape.(Inherited from Shape.) |
|
MouseLeave | Occurs when the mouse pointer leaves the shape. (Inherited from Shape.) |
|
MouseMove | Occurs when the mouse pointer is moved over the shape.(Inherited from Shape.) |
|
MouseUp | Occurs when the mouse pointer is over the shape and a mouse button is released.(Inherited from Shape.) |
|
MouseWheel | Occurs when the mouse wheel moves and the shape has focus.(Inherited from Shape.) |
|
Move | Occurs when the shape is moved.(Inherited from Shape.) |
|
Paint | Occurs when the shape is redrawn.(Inherited from Shape.) |
|
ParentChanged | Occurs when the Parent property value changes.(Inherited from Shape.) |
|
PreviewKeyDown | Occurs before the KeyDown event when a key is pressed and focus is on the shape.(Inherited from Shape.) |
|
QueryAccessibilityHelp | Occurs when an AccessibleObject is providing Help to accessibility applications. (Inherited from Shape.) |
|
RegionChanged | Occurs when the value of the Region property changes.(Inherited from Shape.) |
|
Resize | Occurs when the size of a shape is changed. |
|
SizeChanged | Occurs when the Size property of a shape is changed. |
|
VisibleChanged | Occurs when the Visible property value changes.(Inherited from Shape.) |
Remarks
To create your own shape control, inherit from SimpleShape instead of Shape.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.VisualBasic.PowerPacks Namespace
Return to top