In This Topic
The following tables list the members exposed by Element.
Public Constructors
Public Properties
| Name | Description |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | AutoHeight | Gets or sets the System.Boolean value specifying whether element height is automatically determined by its style and contents. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | AutoSize | Gets the System.Boolean value specifying whether element size is automatically determined by its style and contents. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | AutoWidth | Gets or sets the System.Boolean value specifying whether element width is automatically determined by its style and contents. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | Bounds | Gets or sets the element's bounds (size and location) within its parent element, in pixels. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | Children | Gets a list of child elements. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | ContainsFocus | Gets a value that indicates whether this Element or one of its children has the focus. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | ContentBounds | Client rectangle, in pixels. This discounts margins, borders, and padding. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | Enabled | Gets or sets whether the element is enabled (can receive mouse and keyboard messages). |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | Focusable | Gets or sets whether the element is focusable (receives keyboard messages). |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | Focused | Gets a value that indicates whether this Element has the focus. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | ForceLineBreak | Gets a Element.LineBreak value that determines whether there should be line breaks before and/or after this Element when it occurs in a paragraph. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | HasChildren | Gets a value that indicates the element has a non-empty Children collection. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | Height | Element height. Set to -1 to let the element calculate it automatically. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | HitTestable | Gets or sets whether the element is hit-testable (receives mouse messages). |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | HostControl | Gets the System.Windows.Forms.Control that is hosting this Element. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | HostView | Gets the IView that is hosting this Element. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | InheritedRtl | Gets or sets whether the value of RightToLeft property is inherited from the parent element. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | IsDirty | Gets a value that indicates this element needs to be laid out. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | IsEnabled | Gets whether this element and all its ancestors are enabled. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | IsFocusable | Gets whether this element can currently receive the focus. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | IsHot | Gets or sets whether the element should be displayed using the Style.Hot style. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | IsPressed | Gets or sets whether the element should be displayed using the Style.Pressed style. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | IsVisible | Gets whether this element and all its ancestors are visible. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | Left | Gets or sets the horizontal position of the element within its parent. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | LineDescent | Gets the portion of the element that renders below the baseline. Usually non-zero only for text elements, depends on font. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | Location | Gets or sets the location of the element within its parent. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | Parent | Gets the element's parent, or null if this is the root element. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | RenderStyle | Gets the element's style, or a default style if the element doesn't have one. This never returns null. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | RightToLeft | Gets or sets whether the element should be drawn using right-to-left layout. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | Root | Gets the element's top-level parent. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | ShowFocusRectangle | Gets or sets whether the element should display a focus rectangle when it has focus. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | Size | Gets or sets the size of the element. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | Style | Gets or sets the Style object used to render this Element. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | Top | Gets or sets the vertical position of the element within its parent. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | Validated | Gets or sets a value indicating if the contents was successfully validated. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | Visible | Gets or sets whether the element is visible. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | Width | Element width. Set to -1 to let the element calculate it automatically. |
Top
Public Methods
| Name | Description |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) ![static (Shared in Visual Basic)](template/packages/core-dotnet/images/static.png) | ApplicationHasFocus | |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | Clone | Returns a clone of this element. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) ![static (Shared in Visual Basic)](template/packages/core-dotnet/images/static.png) | FindMnemonic | Finds the Element that is represented by a given hot key. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | Focus | Sets the focus to the host control and to this Element within the host control. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) ![static (Shared in Visual Basic)](template/packages/core-dotnet/images/static.png) | GetBitmapResource | Gets a System.Drawing.Bitmap from the application's embedded resources. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | GetBounds | Overloaded. Gets the element's bounds (size and location) within an arbitrary ancestor, in pixels. Ancestor element (parent, grand-parent, etc). A System.Drawing.Rectangle that corresponds to the element's position within the given ancestor. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | GetFlags | |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) ![static (Shared in Visual Basic)](template/packages/core-dotnet/images/static.png) | GetImageResource | Gets an System.Drawing.Image from the application's embedded resources. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | GetParent<T> | Navigates up the tree to find an ancestor of a given type. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | GetParentOfType | Navigates up the tree to find an ancestor of a given type. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | GetScrollOrigin | Returns the scroll origin (override to implement non-scrolling areas). |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | HitTest | Returns the element at a given point. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | Invalidate | Overloaded. Invalidates this Element within the host control. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | IsChildOf | Determines whether this element is a child of another element. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | IsInputKey | Determines whether the specified key is a regular input key or a special key that requires preprocessing. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | Layout | Overloaded. Lays out this element based on its style and contents. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | Measure | Overloaded. Provides the size, in pixels, of the specified content drawn on the specified System.Drawing.Graphics surface. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | Offset | Adjusts the location of this element by the specified amount. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | OnClick | Called by the host control when the user clicks this Element. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | OnDoubleClick | Called by the host control when the user double-clicks this Element. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | OnGotFocus | Called by the host control when this Element receives the focus. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | OnKeyDown | Called by the host control when the user presses a key and this Element has the focus. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | OnKeyPress | Called by the host control when the user presses a character key and this Element has the focus. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | OnKeyUp | Called by the host control when the user releases a key and this Element has the focus. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | OnLostFocus | Called by the host control when this Element loses the focus. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | OnMouseDown | Called by the host control when the user presses a mouse button over this Element. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | OnMouseEnter | Called by the host control when the mouse enters this Element. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | OnMouseEnterHover | Called by the host control when the mouse enters this Element, even if another element has captured the mouse. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | OnMouseLeave | Called by the host control when the mouse leaves this Element. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | OnMouseLeaveHover | Called by the host control when the mouse leaves this Element, even if another element has captured the mouse. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | OnMouseLostCapture | Called by the host control when the user releases the left mouse button over a disabled Element. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | OnMouseMove | Called by the host control when the mouse moves over this Element. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | OnMouseUp | Called by the host control when the user releases a mouse button over this Element. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | OnMouseWheel | Handles MouseWheel events. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | OnValidated | Called by the host control after the element has been validated. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | OnValidating | Called by the host control when the element is about to lose focus. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | PointToClient | Computes the location of the specified screen point into client coordinates. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | PointToScreen | Computes the location of the specified client point into screen coordinates. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | Render | Renders the element into a given rectangle. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | RenderChildren | Renders the child elements into a given rectangle. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | RenderContent | Render this element's content (no children). |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | SetDirty | Overloaded. Marks this element as dirty, forcing all parent and child elements to be laid out. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | SetFlags | Overloaded. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) ![static (Shared in Visual Basic)](template/packages/core-dotnet/images/static.png) | ThreadHasFocus | |
Top
See Also