[]
Represents a child-containing control element.
public class ElementContainerControl : Panel, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IWindowlessChildSupport, ITouchStatusProvider
Public Class ElementContainerControl
Inherits Panel
Implements IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IWindowlessChildSupport, ITouchStatusProvider
| Name | Description |
|---|---|
| ElementContainerControl() | Creates a new child-containing control element. |
| ElementContainerControl(object) | Creates a new child-containing control element by cloning the specified object. |
| ElementContainerControl(object, bool) | Creates a new child-containing control element by cloning the specified object. |
| Name | Description |
|---|---|
| BACK_COLOR_DEFAULT | Represents the default color background for the element, namely SystemColors.Control. |
| FORE_COLOR_DEFAULT | Represents the default text color for the element, namely SystemColors.ControlText. |
| PICTURE_MARGIN_DEFAULT | Represents the default picture margin for the element, namely 2 pixels. |
| Name | Description |
|---|---|
| About | Gets or sets information about the control. |
| ActiveWindowlessObject | Gets or sets the active child object of the control. |
| AlignHorz | Gets or sets the horizontal alignment of the contents of the control. |
| AlignText | Gets or sets the alignment of the text in the control. |
| AlignVert | Gets or sets the vertical alignment of the contents of the control. |
| BackColor | Gets or sets the background color for the control. |
| BackgroundImage | Gets or sets the background image for the control. |
| Border | Gets or sets the border for the control. |
| CanFocus | Gets or sets whether the control can receive focus. |
| CancelMouse | Internal use only. |
| ContainsFocus | Gets whether the element currently has the input focus. |
| DrawFocusRectangle | Gets or sets the focus rectangle drawing style in the control. |
| Elements | Gets the collection of IElement-derived objects that the current ElementControl contains. |
| Enabled | Gets or sets whether the control can receive focus and respond to user actions. |
| Focused | Gets whether the control has focus. |
| Font | Gets or sets the font for the control. |
| ForeColor | Gets or sets the text color for the control. |
| ForegroundImage | Gets or sets the foreground image for the control. |
| MarginBottom | Gets or sets the margin between the bottom of the control and its contents. |
| MarginLeft | Gets or sets the margin between the left edge of the control and its contents. |
| MarginRight | Gets or sets the margin between the right edge of the control and its contents. |
| MarginTop | Gets or sets the margin between the top of the control and its contents. |
| Name | Gets or sets the name used in code to identify the control. |
| Parent | Gets or sets the parent of the control. |
| Picture | Gets or sets the picture for the control. |
| PictureMargin | Gets or sets the margin between the text and the picture. |
| PictureOrientation | Gets or sets the orientation of the picture in the control. |
| PictureTransparencyColor | Gets or sets the transparency color for the picture in the control. |
| PictureTransparencyTolerance | Gets or sets the picture transparency tolerance for the element. |
| Rectangle | Gets or sets the rectangle in the client area of the control. |
| Redraw | Gets or sets whether the element is allowed to paint. |
| Selectable | Gets or sets whether the control can receive focus. |
| SkipMouseProcessing | Sets the mouse processing flag of the control. |
| State | Gets or sets the element state for the control. |
| StateNotifyList | Internal use only. |
| Text | Gets or sets the contents of the control as a string matching exactly what is displayed. |
| TextOrientation | Gets or sets the orientation of the text in the control. |
| TextRotationAngle | Gets or sets the rotation angle of the text in the control. |
| TextWrap | Gets or sets whether to automatically wrap text without line breaks. |
| Visible | Gets or sets whether the control is visible. |
| Name | Description |
|---|---|
| Dispose(bool) | Clean up any resources being used. |
| Focus(bool) | Moves the focus to the control. |
| GetControl() | Gets the Control object. |
| GetElementStyle() | Gets the style for the element. |
| GetFont() | Gets the current font or the default font if no font is specified. |
| OnBackgroundImageChanged(object, EventArgs) | Occurs if the background picture changes. |
| OnClick(EventArgs) | Occurs if the user clicks on the control. |
| OnDoubleClick(EventArgs) | Occurs if the user double clicks the control. |
| OnForegroundImageChanged(object, EventArgs) | Occurs if the foreground picture changes. |
| OnMouseDown(MouseEventArgs) | Occurs if a mouse button is clicked while the cursor is over the control. |
| OnMouseMove(MouseEventArgs) | Occurs if the pointer is moved within the control and the cursor is over the control. |
| OnMouseUp(MouseEventArgs) | Occurs if a mouse button is released while the cursor is over the control. |
| OnPaint(Graphics, Rectangle) | Paints the control (text and picture). |
| OnPaint(Graphics, Rectangle, ElementStyle) | Paints the control (text and picture) with an overriding style. |
| OnPaint(PaintEventArgs) | Occurs when the element asks to repaint itself. |
| OnPaintBackground(Graphics, Rectangle) | Paints the background of the control. |
| OnPaintBackground(Graphics, Rectangle, ElementStyle) | Paints the background of the control with an overriding style. |
| OnPaintBackground(PaintEventArgs) | Occurs when the control has been asked to repaint itself. |
| OnParentChanged(EventArgs) | Occurs when the parent has changed. |
| OnPictureChanged(object, EventArgs) | Occurs when the picture changes. |
| ResetBackColor() | Resets the background color of the control to its default value. |
| ResetBorder() | Resets the border of the control to its default settings. |
| ResetElements() | Resets the elements to their default settings. |
| ResetFont() | Resets the font of the control to its default value. |
| ResetForeColor() | Resets the ForeColor property to its default value. |
| ResetPicture() | Resets the picture. |
| ResetPictureTransparencyColor() | Resets the transparency color for the picture in the control (PictureTransparencyColor property) to its default color. |
| ResetPictureTransparencyTolerance() | Resets the transparency tolerance for a picture in the element to its default value. |
| ResetText() | Resets the contents to the default value. |
| ResetTextRotationAngle() | Resets the rotation angle for text in the element to its default value. |
| Select(bool) | Activates the control. |
| SetBounds(Rectangle) | Sets the bounds of the control to the specified position and size, using a rectangle. |
| SetBounds(int, int, int, int) | Sets the bounds of the control to the specified position and size, using integer values. |
| SetElementStyle(ElementStyle) | Sets the style for the element. |
| ShouldSerializePictureTransparencyTolerance() | Indicates whether the PictureTransparencyTolerance property should be persisted. |
| ShouldSerializeTextRotationAngle() | Indicates whether the TextRotationAngle property should be persisted. |
| ToggleState() | Toggles the state of the control. |
| Update() | Causes the control to redraw the invalidated regions within its client area. |