Udostępnij za pośrednictwem


Klasa ShapeContainer

Stanowi kontener dla LineShape, OvalShape, RectangleShape formantów i dla wszelkich innych kontroli, która wynika z Shape.

Hierarchia dziedziczenia

Object
  MarshalByRefObject
    Component
      Control
        ScrollableControl
          ContainerControl
            UserControl
              Microsoft.VisualBasic.PowerPacks.ShapeContainer

Przestrzeń nazw:  Microsoft.VisualBasic.PowerPacks
Zestaw:  Microsoft.VisualBasic.PowerPacks.Vs (w Microsoft.VisualBasic.PowerPacks.Vs.dll)

Składnia

'Deklaracja
<BrowsableAttribute(False)> _
Public NotInheritable Class ShapeContainer _
    Inherits UserControl
[BrowsableAttribute(false)]
public sealed class ShapeContainer : UserControl
[BrowsableAttribute(false)]
public ref class ShapeContainer sealed : public UserControl
[<Sealed>]
[<BrowsableAttribute(false)>]
type ShapeContainer =  
    class 
        inherit UserControl 
    end
public final class ShapeContainer extends UserControl

Typ ShapeContainer uwidacznia następujące elementy członkowskie.

Konstruktorzy

  Nazwa Opis
Metoda publiczna ShapeContainer Inicjuje nowe wystąpienie ShapeContainer klasy.

Początek

Właściwości

  Nazwa Opis
Właściwość publiczna AccessibilityObject Gets the AccessibleObject assigned to the control. (Odziedziczone z Control).
Właściwość publiczna AccessibleDefaultActionDescription Gets or sets the default action description of the control for use by accessibility client applications. (Odziedziczone z Control).
Właściwość publiczna AccessibleDescription Gets or sets the description of the control used by accessibility client applications. (Odziedziczone z Control).
Właściwość publiczna AccessibleName Gets or sets the name of the control used by accessibility client applications. (Odziedziczone z Control).
Właściwość publiczna AccessibleRole Zwraca lub ustawia dostępne rolę ShapeContainer.
Właściwość publiczna ActiveControl Gets or sets the active control on the container control. (Odziedziczone z ContainerControl).
Właściwość publiczna AllowDrop Gets or sets a value indicating whether the control can accept data that the user drags onto it. (Odziedziczone z Control).
Właściwość publiczna Anchor Gets or sets the edges of the container to which a control is bound and determines how a control is resized with its parent. (Odziedziczone z Control).
Właściwość publiczna AutoScaleDimensions Gets or sets the dimensions that the control was designed to. (Odziedziczone z ContainerControl).
Właściwość publiczna AutoScaleMode Gets or sets the automatic scaling mode of the control. (Odziedziczone z ContainerControl).
Właściwość publiczna AutoScroll Pobiera lub ustawia wartość wskazującą, czy kontener umożliwia użytkownikowi przewijać się wszelkim kontrolom umieszczony poza jego granice widoczne. (Odziedziczone z ScrollableControl).
Właściwość publiczna AutoScrollMargin Pobiera lub ustawia rozmiar marginesu przewijania automatycznego. (Odziedziczone z ScrollableControl).
Właściwość publiczna AutoScrollMinSize Pobiera lub ustawia minimalny rozmiar przewijania automatycznego. (Odziedziczone z ScrollableControl).
Właściwość publiczna AutoScrollOffset Gets or sets where this control is scrolled to in ScrollControlIntoView. (Odziedziczone z Control).
Właściwość publiczna AutoScrollPosition Pobiera lub Ustawia lokalizację pozycji przewijania automatycznego. (Odziedziczone z ScrollableControl).
Właściwość publiczna AutoSize This property is not relevant for this class. (Odziedziczone z UserControl).
Właściwość publiczna AutoSizeMode Gets or sets how the control will resize itself. (Odziedziczone z UserControl).
Właściwość publiczna AutoValidate Gets or sets how the control performs validation when the user changes focus to another control. (Odziedziczone z UserControl).
Właściwość publiczna BackColor Gets or sets the background color for the control. (Odziedziczone z Control).
Właściwość publiczna BackgroundImage Gets or sets the background image displayed in the control. (Odziedziczone z Control).
Właściwość publiczna BackgroundImageLayout Gets or sets the background image layout as defined in the ImageLayout enumeration. (Odziedziczone z Control).
Właściwość publiczna BindingContext Gets or sets the BindingContext for the control. (Odziedziczone z ContainerControl).
Właściwość publiczna BorderStyle Gets or sets the border style of the user control. (Odziedziczone z UserControl).
Właściwość publiczna Bottom Gets the distance, in pixels, between the bottom edge of the control and the top edge of its container's client area. (Odziedziczone z Control).
Właściwość publiczna Bounds Gets or sets the size and location of the control including its nonclient elements, in pixels, relative to the parent control. (Odziedziczone z Control).
Właściwość publiczna CanFocus Gets a value indicating whether the control can receive focus. (Odziedziczone z Control).
Właściwość publiczna CanSelect Gets a value indicating whether the control can be selected. (Odziedziczone z Control).
Właściwość publiczna Capture Gets or sets a value indicating whether the control has captured the mouse. (Odziedziczone z Control).
Właściwość publiczna CausesValidation Gets or sets a value indicating whether the control causes validation to be performed on any controls that require validation when it receives focus. (Odziedziczone z Control).
Właściwość publiczna ClientRectangle Gets the rectangle that represents the client area of the control. (Odziedziczone z Control).
Właściwość publiczna ClientSize Gets or sets the height and width of the client area of the control. (Odziedziczone z Control).
Właściwość publiczna CompanyName Gets the name of the company or creator of the application containing the control. (Odziedziczone z Control).
Właściwość publiczna Container Pobiera IContainer , która zawiera Component. (Odziedziczone z Component).
Właściwość publiczna ContainsFocus Gets a value indicating whether the control, or one of its child controls, currently has the input focus. (Odziedziczone z Control).
Właściwość publiczna ContextMenu Gets or sets the shortcut menu associated with the control. (Odziedziczone z Control).
Właściwość publiczna ContextMenuStrip Gets or sets the ContextMenuStrip associated with this control. (Odziedziczone z Control).
Właściwość publiczna Controls Gets the collection of controls contained within the control. (Odziedziczone z Control).
Właściwość publiczna Created Gets a value indicating whether the control has been created. (Odziedziczone z Control).
Właściwość publiczna CurrentAutoScaleDimensions Gets the current run-time dimensions of the screen. (Odziedziczone z ContainerControl).
Właściwość publiczna Cursor Zwraca lub ustawia kursor, który jest wyświetlany, gdy wskaźnik myszy znajduje się nad ShapeContainer. (Zastępuje Control.Cursor).
Właściwość publiczna DataBindings Gets the data bindings for the control. (Odziedziczone z Control).
Właściwość publiczna DisplayRectangle Pobiera prostokąt, który reprezentuje obszar wyświetlania wirtualnego formantu. (Odziedziczone z ScrollableControl).
Właściwość publiczna Disposing Gets a value indicating whether the base Control class is in the process of disposing. (Odziedziczone z Control).
Właściwość publiczna Dock Pobiera lub ustawia, które obramowania formantu są zadokowane do formantu nadrzędnego i określa, w jaki sposób zostanie zmieniony rozmiar formantu, gdy zmieniany jest rozmiar jego obiektu nadrzędnego. (Zastępuje Control.Dock).
Właściwość publiczna DockPadding Pobiera ustawienia dopełnienia stacji dokującej dla wszystkich krawędzi formantu. (Odziedziczone z ScrollableControl).
Właściwość publiczna Enabled Gets or sets a value indicating whether the control can respond to user interaction. (Odziedziczone z Control).
Właściwość publiczna Focused Gets a value indicating whether the control has input focus. (Odziedziczone z Control).
Właściwość publiczna Font Gets or sets the font of the text displayed by the control. (Odziedziczone z Control).
Właściwość publiczna ForeColor Gets or sets the foreground color of the control. (Odziedziczone z Control).
Właściwość publiczna Handle Gets the window handle that the control is bound to. (Odziedziczone z Control).
Właściwość publiczna HasChildren Gets a value indicating whether the control contains one or more child controls. (Odziedziczone z Control).
Właściwość publiczna Height Gets or sets the height of the control. (Odziedziczone z Control).
Właściwość publiczna HorizontalScroll Pobiera właściwości związane z poziomego paska przewijania. (Odziedziczone z ScrollableControl).
Właściwość publiczna ImeMode Gets or sets the Input Method Editor (IME) mode of the control. (Odziedziczone z Control).
Właściwość publiczna InvokeRequired Gets a value indicating whether the caller must call an invoke method when making method calls to the control because the caller is on a different thread than the one the control was created on. (Odziedziczone z Control).
Właściwość publiczna IsAccessible Gets or sets a value indicating whether the control is visible to accessibility applications. (Odziedziczone z Control).
Właściwość publiczna IsDisposed Gets a value indicating whether the control has been disposed of. (Odziedziczone z Control).
Właściwość publiczna IsHandleCreated Gets a value indicating whether the control has a handle associated with it. (Odziedziczone z Control).
Właściwość publiczna IsMirrored Gets a value indicating whether the control is mirrored. (Odziedziczone z Control).
Właściwość publiczna LayoutEngine Gets a cached instance of the control's layout engine. (Odziedziczone z Control).
Właściwość publiczna Left Gets or sets the distance, in pixels, between the left edge of the control and the left edge of its container's client area. (Odziedziczone z Control).
Właściwość publiczna Location Gets or sets the coordinates of the upper-left corner of the control relative to the upper-left corner of its container. (Odziedziczone z Control).
Właściwość publiczna Margin Gets or sets the space between controls. (Odziedziczone z Control).
Właściwość publiczna MaximumSize Gets or sets the size that is the upper limit that GetPreferredSize can specify. (Odziedziczone z Control).
Właściwość publiczna MinimumSize Gets or sets the size that is the lower limit that GetPreferredSize can specify. (Odziedziczone z Control).
Właściwość publiczna Name Gets or sets the name of the control. (Odziedziczone z Control).
Właściwość publiczna Padding Gets or sets padding within the control. (Odziedziczone z Control).
Właściwość publiczna Parent Gets or sets the parent container of the control. (Odziedziczone z Control).
Właściwość publiczna ParentForm Gets the form that the container control is assigned to. (Odziedziczone z ContainerControl).
Właściwość publiczna PreferredSize Gets the size of a rectangular area into which the control can fit. (Odziedziczone z Control).
Właściwość publiczna ProductName Gets the product name of the assembly containing the control. (Odziedziczone z Control).
Właściwość publiczna ProductVersion Gets the version of the assembly containing the control. (Odziedziczone z Control).
Właściwość publiczna RecreatingHandle Gets a value indicating whether the control is currently re-creating its handle. (Odziedziczone z Control).
Właściwość publiczna Region Gets or sets the window region associated with the control. (Odziedziczone z Control).
Właściwość chroniona RenderRightToLeft Nieaktualne. This property is now obsolete. (Odziedziczone z Control).
Właściwość publiczna Right Gets the distance, in pixels, between the right edge of the control and the left edge of its container's client area. (Odziedziczone z Control).
Właściwość publiczna RightToLeft Gets or sets a value indicating whether control's elements are aligned to support locales using right-to-left fonts. (Odziedziczone z Control).
Właściwość publiczna Shapes Zwraca kolekcję kształtów, które są zawarte w ShapeContainer.
Właściwość chroniona ShowFocusCues Gets a value indicating whether the control should display focus rectangles. (Odziedziczone z Control).
Właściwość chroniona ShowKeyboardCues Gets a value indicating whether the user interface is in the appropriate state to show or hide keyboard accelerators. (Odziedziczone z Control).
Właściwość publiczna Site Gets or sets the site of the control. (Odziedziczone z Control).
Właściwość publiczna Size Gets or sets the height and width of the control. (Odziedziczone z Control).
Właściwość publiczna TabIndex Gets or sets the tab order of the control within its container. (Odziedziczone z Control).
Właściwość publiczna TabStop Gets or sets a value indicating whether the user can give the focus to this control using the TAB key. (Odziedziczone z Control).
Właściwość publiczna Tag Gets or sets the object that contains data about the control. (Odziedziczone z Control).
Właściwość publiczna Text Gets or sets the text associated with this control. (Odziedziczone z UserControl).
Właściwość publiczna Top Gets or sets the distance, in pixels, between the top edge of the control and the top edge of its container's client area. (Odziedziczone z Control).
Właściwość publiczna TopLevelControl Gets the parent control that is not parented by another Windows Forms control.Typically, this is the outermost Form that the control is contained in. (Odziedziczone z Control).
Właściwość publiczna UseWaitCursor Gets or sets a value indicating whether to use the wait cursor for the current control and all child controls. (Odziedziczone z Control).
Właściwość publiczna VerticalScroll Pobiera właściwości związane z pionowego paska przewijania. (Odziedziczone z ScrollableControl).
Właściwość publiczna Visible Gets or sets a value indicating whether the control and all its child controls are displayed. (Odziedziczone z Control).
Właściwość publiczna Width Gets or sets the width of the control. (Odziedziczone z Control).
Właściwość publiczna WindowTarget Infrastruktura. This property is not relevant for this class. (Odziedziczone z Control).

Początek

Metody

  Nazwa Opis
Metoda chroniona AccessibilityNotifyClients Notifies the accessibility client applications of the specified AccessibleEvents for the specified child control. (Odziedziczone z Control).
Metoda publiczna BeginInvoke(Delegate) Executes the specified delegate asynchronously on the thread that the control's underlying handle was created on. (Odziedziczone z Control).
Metoda publiczna BeginInvoke(Delegate, Object) Executes the specified delegate asynchronously with the specified arguments, on the thread that the control's underlying handle was created on. (Odziedziczone z Control).
Metoda publiczna BringToFront Brings the control to the front of the z-order. (Odziedziczone z Control).
Metoda publiczna Contains Retrieves a value indicating whether the specified control is a child of the control. (Odziedziczone z Control).
Metoda publiczna CreateControl Forces the creation of the visible control, including the creation of the handle and any visible child controls. (Odziedziczone z Control).
Metoda publiczna CreateGraphics Creates the Graphics for the control. (Odziedziczone z Control).
Metoda publiczna CreateObjRef Krytyczny pod względem zabezpieczeń Tworzy obiekt, który zawiera wszystkie istotne informacje wymagane do wygenerowania serwera proxy, używany do komunikowania się z obiektem zdalnym. (Odziedziczone z MarshalByRefObject).
Metoda publiczna Dispose Zwalnia wszystkie zasoby używane przez Component. (Odziedziczone z Component).
Metoda publiczna DoDragDrop Begins a drag-and-drop operation. (Odziedziczone z Control).
Metoda publiczna DrawToBitmap Supports rendering to the specified bitmap. (Odziedziczone z Control).
Metoda publiczna EndInvoke Retrieves the return value of the asynchronous operation represented by the IAsyncResult passed. (Odziedziczone z Control).
Metoda publiczna Equals Determines whether the specified object is equal to the current object. (Odziedziczone z Object).
Metoda publiczna FindForm Retrieves the form that the control is on. (Odziedziczone z Control).
Metoda publiczna Focus Sets input focus to the control. (Odziedziczone z Control).
Metoda publiczna GetChildAtPoint(Point) Pobiera kształtu, który znajduje się w określonych współrzędnych.
Metoda publiczna GetChildAtPoint(Point, GetChildAtPointSkip) Retrieves the child control that is located at the specified coordinates, specifying whether to ignore child controls of a certain type. (Odziedziczone z Control).
Metoda publiczna GetContainerControl Returns the next ContainerControl up the control's chain of parent controls. (Odziedziczone z Control).
Metoda publiczna GetHashCode Serves as the default hash function. (Odziedziczone z Object).
Metoda publiczna GetLifetimeService Krytyczny pod względem zabezpieczeń Pobiera obiekt usługi bieżącego okresu istnienia, który kontroluje politykę okres istnienia dla tego wystąpienia. (Odziedziczone z MarshalByRefObject).
Metoda publiczna GetNextControl Retrieves the next control forward or back in the tab order of child controls. (Odziedziczone z Control).
Metoda publiczna GetNextShape Pobiera następne lub poprzednie kształt w kolejności od ShapeCollection.
Metoda publiczna GetPreferredSize Retrieves the size of a rectangular area into which a control can be fitted. (Odziedziczone z Control).
Metoda publiczna GetType Gets the Type of the current instance. (Odziedziczone z Object).
Metoda publiczna Hide Conceals the control from the user. (Odziedziczone z Control).
Metoda publiczna InitializeLifetimeService Krytyczny pod względem zabezpieczeń Uzyskuje obiekt usługi istnienia kontroli zasad okres istnienia dla tego wystąpienia. (Odziedziczone z MarshalByRefObject).
Metoda publiczna Invalidate Invalidates the entire surface of the control and causes the control to be redrawn. (Odziedziczone z Control).
Metoda publiczna Invalidate(Region) Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. (Odziedziczone z Control).
Metoda publiczna Invalidate(Boolean) Invalidates a specific region of the control and causes a paint message to be sent to the control.Optionally, invalidates the child controls assigned to the control. (Odziedziczone z Control).
Metoda publiczna Invalidate(Rectangle) Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. (Odziedziczone z Control).
Metoda publiczna Invalidate(Region, Boolean) Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control.Optionally, invalidates the child controls assigned to the control. (Odziedziczone z Control).
Metoda publiczna Invalidate(Rectangle, Boolean) Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control.Optionally, invalidates the child controls assigned to the control. (Odziedziczone z Control).
Metoda publiczna Invoke(Delegate) Executes the specified delegate on the thread that owns the control's underlying window handle. (Odziedziczone z Control).
Metoda publiczna Invoke(Delegate, Object) Executes the specified delegate, on the thread that owns the control's underlying window handle, with the specified list of arguments. (Odziedziczone z Control).
Metoda publiczna PerformAutoScale Performs scaling of the container control and its children. (Odziedziczone z ContainerControl).
Metoda publiczna PerformLayout Forces the control to apply layout logic to all its child controls. (Odziedziczone z Control).
Metoda publiczna PerformLayout(Control, String) Forces the control to apply layout logic to all its child controls. (Odziedziczone z Control).
Metoda publiczna PointToClient Computes the location of the specified screen point into client coordinates. (Odziedziczone z Control).
Metoda publiczna PointToScreen Computes the location of the specified client point into screen coordinates. (Odziedziczone z Control).
Metoda publiczna PreProcessControlMessage Preprocesses keyboard or input messages within the message loop before they are dispatched. (Odziedziczone z Control).
Metoda publiczna PreProcessMessage Preprocesses keyboard or input messages within the message loop before they are dispatched. (Odziedziczone z Control).
Metoda chroniona ProcessKeyMessage Processes a keyboard message. (Odziedziczone z Control).
Metoda chroniona ProcessMnemonic Infrastruktura. Processes a mnemonic character. (Odziedziczone z ContainerControl).
Metoda publiczna RectangleToClient Computes the size and location of the specified screen rectangle in client coordinates. (Odziedziczone z Control).
Metoda publiczna RectangleToScreen Computes the size and location of the specified client rectangle in screen coordinates. (Odziedziczone z Control).
Metoda publiczna Refresh Forces the control to invalidate its client area and immediately redraw itself and any child controls. (Odziedziczone z Control).
Metoda publiczna ResetBackColor Resets the BackColor property to its default value. (Odziedziczone z Control).
Metoda publiczna ResetBindings Causes a control bound to the BindingSource to reread all the items in the list and refresh their displayed values. (Odziedziczone z Control).
Metoda publiczna ResetCursor Resets the Cursor property to its default value. (Odziedziczone z Control).
Metoda publiczna ResetFont Resets the Font property to its default value. (Odziedziczone z Control).
Metoda publiczna ResetForeColor Resets the ForeColor property to its default value. (Odziedziczone z Control).
Metoda publiczna ResetImeMode Resets the ImeMode property to its default value. (Odziedziczone z Control).
Metoda publiczna ResetRightToLeft Resets the RightToLeft property to its default value. (Odziedziczone z Control).
Metoda publiczna ResetText Resets the Text property to its default value. (Odziedziczone z Control).
Metoda publiczna ResumeLayout Resumes usual layout logic. (Odziedziczone z Control).
Metoda publiczna ResumeLayout(Boolean) Resumes usual layout logic, optionally forcing an immediate layout of pending layout requests. (Odziedziczone z Control).
Metoda chroniona RtlTranslateContent Converts the specified ContentAlignment to the appropriate ContentAlignment to support right-to-left text. (Odziedziczone z Control).
Metoda publiczna Scale(Single) Nieaktualne. Scales the control and any child controls. (Odziedziczone z Control).
Metoda publiczna Scale(SizeF) Scales the control and all child controls by the specified scaling factor. (Odziedziczone z Control).
Metoda publiczna Scale(Single, Single) Nieaktualne. Scales the entire control and any child controls. (Odziedziczone z Control).
Metoda publiczna ScrollControlIntoView Przewija określonego formantu podrzędnego do wyświetlenia w formancie włączone automatyczne przewijanie. (Odziedziczone z ScrollableControl).
Metoda publiczna Select Activates the control. (Odziedziczone z Control).
Metoda publiczna SelectNextControl Activates the next control. (Odziedziczone z Control).
Metoda publiczna SelectNextShape Zaznacza następny lub poprzedni kształt w kolejności od ShapeCollection.
Metoda publiczna SendToBack Sends the control to the back of the z-order. (Odziedziczone z Control).
Metoda publiczna SetAutoScrollMargin Ustawia rozmiar marginesów przewijania automatycznego. (Odziedziczone z ScrollableControl).
Metoda publiczna SetBounds(Int32, Int32, Int32, Int32) Sets the bounds of the control to the specified location and size. (Odziedziczone z Control).
Metoda publiczna SetBounds(Int32, Int32, Int32, Int32, BoundsSpecified) Sets the specified bounds of the control to the specified location and size. (Odziedziczone z Control).
Metoda publiczna Show Displays the control to the user. (Odziedziczone z Control).
Metoda publiczna SuspendLayout Temporarily suspends the layout logic for the control. (Odziedziczone z Control).
Metoda publiczna ToString Zwraca String zawierający nazwę Component, jeśli istnieje.Metoda ta nie powinna być pomijana. (Odziedziczone z Component).
Metoda publiczna Update Causes the control to redraw the invalidated regions within its client area. (Odziedziczone z Control).
Metoda chroniona UpdateBounds Updates the bounds of the control with the current size and location. (Odziedziczone z Control).
Metoda publiczna Validate Verifies the value of the control losing focus by causing the Validating and Validated events to occur, in that order. (Odziedziczone z ContainerControl).
Metoda publiczna Validate(Boolean) Verifies the value of the control that is losing focus; conditionally dependent on whether automatic validation is turned on. (Odziedziczone z ContainerControl).
Metoda publiczna ValidateChildren Causes all of the child controls within a control that support validation to validate their data. (Odziedziczone z UserControl).
Metoda publiczna ValidateChildren(ValidationConstraints) Causes all of the child controls within a control that support validation to validate their data. (Odziedziczone z UserControl).

Początek

Zdarzenia

  Nazwa Opis
Zdarzenie publiczne AutoSizeChanged Occurs when the AutoSize property changes. (Odziedziczone z UserControl).
Zdarzenie publiczne AutoValidateChanged Occurs when the AutoValidate property changes. (Odziedziczone z UserControl).
Zdarzenie publiczne BackColorChanged Occurs when the value of the BackColor property changes. (Odziedziczone z Control).
Zdarzenie publiczne BackgroundImageChanged Occurs when the value of the BackgroundImage property changes. (Odziedziczone z Control).
Zdarzenie publiczne BackgroundImageLayoutChanged Occurs when the BackgroundImageLayout property changes. (Odziedziczone z Control).
Zdarzenie publiczne BindingContextChanged Occurs when the value of the BindingContext property changes. (Odziedziczone z Control).
Zdarzenie publiczne CausesValidationChanged Occurs when the value of the CausesValidation property changes. (Odziedziczone z Control).
Zdarzenie publiczne ChangeUICues Occurs when the focus or keyboard user interface (UI) cues change. (Odziedziczone z Control).
Zdarzenie publiczne Click Occurs when the control is clicked. (Odziedziczone z Control).
Zdarzenie publiczne ClientSizeChanged Occurs when the value of the ClientSize property changes. (Odziedziczone z Control).
Zdarzenie publiczne ContextMenuChanged Occurs when the value of the ContextMenu property changes. (Odziedziczone z Control).
Zdarzenie publiczne ContextMenuStripChanged Occurs when the value of the ContextMenuStrip property changes. (Odziedziczone z Control).
Zdarzenie publiczne ControlAdded Occurs when a new control is added to the ControlCollection. (Odziedziczone z Control).
Zdarzenie publiczne ControlRemoved Occurs when a control is removed from the ControlCollection. (Odziedziczone z Control).
Zdarzenie publiczne CursorChanged Occurs when the value of the Cursor property changes. (Odziedziczone z Control).
Zdarzenie publiczne Disposed Występuje, gdy składnik jest usuwany przez wywołanie do Dispose metody. (Odziedziczone z Component).
Zdarzenie publiczne DockChanged Occurs when the value of the Dock property changes. (Odziedziczone z Control).
Zdarzenie publiczne DoubleClick Occurs when the control is double-clicked. (Odziedziczone z Control).
Zdarzenie publiczne DragDrop Occurs when a drag-and-drop operation is completed. (Odziedziczone z Control).
Zdarzenie publiczne DragEnter Occurs when an object is dragged into the control's bounds. (Odziedziczone z Control).
Zdarzenie publiczne DragLeave Occurs when an object is dragged out of the control's bounds. (Odziedziczone z Control).
Zdarzenie publiczne DragOver Occurs when an object is dragged over the control's bounds. (Odziedziczone z Control).
Zdarzenie publiczne EnabledChanged Occurs when the Enabled property value has changed. (Odziedziczone z Control).
Zdarzenie publiczne Enter Occurs when the control is entered. (Odziedziczone z Control).
Zdarzenie publiczne FontChanged Occurs when the Font property value changes. (Odziedziczone z Control).
Zdarzenie publiczne ForeColorChanged Occurs when the ForeColor property value changes. (Odziedziczone z Control).
Zdarzenie publiczne GiveFeedback Occurs during a drag operation. (Odziedziczone z Control).
Zdarzenie publiczne GotFocus Occurs when the control receives focus. (Odziedziczone z Control).
Zdarzenie publiczne HandleCreated Occurs when a handle is created for the control. (Odziedziczone z Control).
Zdarzenie publiczne HandleDestroyed Occurs when the control's handle is in the process of being destroyed. (Odziedziczone z Control).
Zdarzenie publiczne HelpRequested Occurs when the user requests help for a control. (Odziedziczone z Control).
Zdarzenie publiczne ImeModeChanged Occurs when the ImeMode property has changed. (Odziedziczone z Control).
Zdarzenie publiczne Invalidated Occurs when a control's display requires redrawing. (Odziedziczone z Control).
Zdarzenie publiczne KeyDown Occurs when a key is pressed while the control has focus. (Odziedziczone z Control).
Zdarzenie publiczne KeyPress Occurs when a character.space or backspace key is pressed while the control has focus. (Odziedziczone z Control).
Zdarzenie publiczne KeyUp Occurs when a key is released while the control has focus. (Odziedziczone z Control).
Zdarzenie publiczne Layout Occurs when a control should reposition its child controls. (Odziedziczone z Control).
Zdarzenie publiczne Leave Occurs when the input focus leaves the control. (Odziedziczone z Control).
Zdarzenie publiczne Load Occurs before the control becomes visible for the first time. (Odziedziczone z UserControl).
Zdarzenie publiczne LocationChanged Occurs when the Location property value has changed. (Odziedziczone z Control).
Zdarzenie publiczne LostFocus Occurs when the control loses focus. (Odziedziczone z Control).
Zdarzenie publiczne MarginChanged Occurs when the control's margin changes. (Odziedziczone z Control).
Zdarzenie publiczne MouseCaptureChanged Occurs when the control loses mouse capture. (Odziedziczone z Control).
Zdarzenie publiczne MouseClick Occurs when the control is clicked by the mouse. (Odziedziczone z Control).
Zdarzenie publiczne MouseDoubleClick Occurs when the control is double clicked by the mouse. (Odziedziczone z Control).
Zdarzenie publiczne MouseDown Occurs when the mouse pointer is over the control and a mouse button is pressed. (Odziedziczone z Control).
Zdarzenie publiczne MouseEnter Occurs when the mouse pointer enters the control. (Odziedziczone z Control).
Zdarzenie publiczne MouseHover Occurs when the mouse pointer rests on the control. (Odziedziczone z Control).
Zdarzenie publiczne MouseLeave Occurs when the mouse pointer leaves the control. (Odziedziczone z Control).
Zdarzenie publiczne MouseMove Occurs when the mouse pointer is moved over the control. (Odziedziczone z Control).
Zdarzenie publiczne MouseUp Occurs when the mouse pointer is over the control and a mouse button is released. (Odziedziczone z Control).
Zdarzenie publiczne MouseWheel Occurs when the mouse wheel moves while the control has focus. (Odziedziczone z Control).
Zdarzenie publiczne Move Occurs when the control is moved. (Odziedziczone z Control).
Zdarzenie publiczne PaddingChanged Occurs when the control's padding changes. (Odziedziczone z Control).
Zdarzenie publiczne Paint Occurs when the control is redrawn. (Odziedziczone z Control).
Zdarzenie publiczne ParentChanged Occurs when the Parent property value changes. (Odziedziczone z Control).
Zdarzenie publiczne PreviewKeyDown Occurs before the KeyDown event when a key is pressed while focus is on this control. (Odziedziczone z Control).
Zdarzenie publiczne QueryAccessibilityHelp Occurs when AccessibleObject is providing help to accessibility applications. (Odziedziczone z Control).
Zdarzenie publiczne QueryContinueDrag Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop operation should be canceled. (Odziedziczone z Control).
Zdarzenie publiczne RegionChanged Occurs when the value of the Region property changes. (Odziedziczone z Control).
Zdarzenie publiczne Resize Occurs when the control is resized. (Odziedziczone z Control).
Zdarzenie publiczne RightToLeftChanged Occurs when the RightToLeft property value changes. (Odziedziczone z Control).
Zdarzenie publiczne Scroll Występuje, gdy użytkownik lub kod Przewija obszaru klienckiego. (Odziedziczone z ScrollableControl).
Zdarzenie publiczne SizeChanged Occurs when the Size property value changes. (Odziedziczone z Control).
Zdarzenie publiczne StyleChanged Occurs when the control style changes. (Odziedziczone z Control).
Zdarzenie publiczne SystemColorsChanged Occurs when the system colors change. (Odziedziczone z Control).
Zdarzenie publiczne TabIndexChanged Occurs when the TabIndex property value changes. (Odziedziczone z Control).
Zdarzenie publiczne TabStopChanged Occurs when the TabStop property value changes. (Odziedziczone z Control).
Zdarzenie publiczne TextChanged Infrastruktura. Raises the TextChanged event. (Odziedziczone z UserControl).
Zdarzenie publiczne Validated Occurs when the control is finished validating. (Odziedziczone z Control).
Zdarzenie publiczne Validating Occurs when the control is validating. (Odziedziczone z Control).
Zdarzenie publiczne VisibleChanged Occurs when the Visible property value changes. (Odziedziczone z Control).

Początek

Jawne implementacje interfejsu

  Nazwa Opis
Jawna implementacja interfejsuMetoda prywatna System#Windows#Forms#IContainerControl#ActivateControl Activates the specified control. (Odziedziczone z ContainerControl).
Jawna implementacja interfejsuMetoda prywatna System#Windows#Forms#IDropTarget#OnDragDrop Infrastruktura. Raises the DragDrop event. (Odziedziczone z Control).
Jawna implementacja interfejsuMetoda prywatna System#Windows#Forms#IDropTarget#OnDragEnter Infrastruktura. Raises the DragEnter event. (Odziedziczone z Control).
Jawna implementacja interfejsuMetoda prywatna System#Windows#Forms#IDropTarget#OnDragLeave Infrastruktura. Raises the DragLeave event. (Odziedziczone z Control).
Jawna implementacja interfejsuMetoda prywatna System#Windows#Forms#IDropTarget#OnDragOver Infrastruktura. Raises the DragOver event. (Odziedziczone z Control).

Początek

Uwagi

A LineShape, OvalShape, lub RectangleShape kontroli, które mogą być zawarte wyłącznie w ShapeContainer obiekt, który działa jako obszaru roboczego dla linii i kształtów formantów.

Po dodaniu linii lub kształtu do formularza lub kontenera w czasie projektowania, ShapeContainer jest tworzona automatycznie, jeśli już nie istnieje.Parent Właściwość linię lub kształt jest ustawiona do tego ShapeContainer.Parent Właściwość ShapeContainer jest ustawiona do formantu formularza lub kontener, do którego dodano linię lub kształt.

Po utworzeniu linii lub kształtu w czasie wykonywania za pomocą New metody, formantu Parent właściwość musi być ustawiona na ShapeContainer.Jeśli ShapeContainer już istnieje dla formularza lub kontenera, należy ustawić Parent właściwość, która ShapeContainer.Jeśli nie ShapeContainer istnieje, można utworzyć ShapeContainer za pomocą New metody i ustawianie jej Parent właściwości formularza lub kontenera.

[!UWAGA]

Należy uważać, że nie utworzysz więcej niż jeden ShapeContainer dla każdego formularza lub kontenera; w ten sposób mogą wprowadzić nieoczekiwane zachowanie.Po dodaniu linii w czasie projektowania lub formant kształtu do formularza lub kontenera po pisać kod, aby utworzyć programowo, należy modyfikować kodu w celu użycia ShapeContainer utworzone przez projektanta.

Przykłady

Poniższy przykład sprawdza, czy istniejący ShapeContainer i ustawia Parent właściwość OvalShape kontroli utworzone w czasie wykonywania za pomocą New metody.

Private Sub Form1_Load() Handles MyBase.Load
    Dim NewOval As New OvalShape
    Dim i As Integer 
    Dim found As Boolean 
    ' Loop through the Controls collection. 
    For i = 0 To Me.Controls.Count - 1
        ' If a ShapeContainer is found, make it the parent. 
        If TypeOf Controls.Item(i) Is ShapeContainer Then
            NewOval.Parent = Controls.Item(i)
            found = True 
            Exit For 
        End If 
    Next 
    ' If no ShapeContainer is found, create one and set the parents. 
    If found = False Then 
        Dim sc As New ShapeContainer
        sc.Parent = Me
        NewOval.Parent = sc
    End If
    NewOval.Size = New Size(200, 300)
End Sub
private void form1_Load(System.Object sender, System.EventArgs e)
{
    OvalShape NewOval = new OvalShape();
    int i;
    bool found = false;
    // Loop through the Controls collection. 
    for (i = 0; i < this.Controls.Count; i++)
    {
        // If a ShapeContainer is found, make it the parent. 
        if (this.Controls[i] is ShapeContainer)
        {
            NewOval.Parent = ((ShapeContainer)this.Controls[i]);
            found = true;
            break;
        }
    }
    // If no ShapeContainer is found, create one and set the parents. 
    if (found == false)
    {
        ShapeContainer sc = new ShapeContainer();
        sc.Parent = this;
        NewOval.Parent = sc;
    }
    NewOval.Size = new Size(200, 300);
}

Bezpieczeństwo wątku

Wszystkie publiczne static (Shared w języku Visual Basic) elementy członkowskie tego typu są bezpieczne dla wątków. Wystąpienia elementów członkowskich nie dają gwarancji bezpieczeństwa wątków.

Zobacz też

Informacje

Przestrzeń nazw Microsoft.VisualBasic.PowerPacks

Inne zasoby

Linie i kształty — Wprowadzenie do formantów (Visual Studio)

Porady: rysowanie linii za pomocą formantów LineShape (Visual Studio)

Porady: rysowanie kształtów za pomocą formantów OvalShape i RectangleShape (Visual Studio)