TreeView for WinForms | ComponentOne
C1.Framework Namespace / Element Class
Fields Properties Methods


In This Topic
    Element Class Members
    In This Topic

    The following tables list the members exposed by Element.

    Public Constructors
     NameDescription
    Public ConstructorOverloaded.   
    Top
    Protected Fields
     NameDescription
    Protected FieldThe System.Drawing.Rectangle that defines the position of the Element within its parent.  
    Protected FieldAn Element.ElementFlags value that defines the behavior of this Element.  
    Protected FieldThe parent Element.  
    Protected FieldThe Element.Style object that defines the appearance of this Element.  
    Top
    Public Properties
     NameDescription
    Public PropertyGets or sets the System.Boolean value specifying whether element height is automatically determined by its style and contents.  
    Public PropertyGets the System.Boolean value specifying whether element size is automatically determined by its style and contents.  
    Public PropertyGets or sets the System.Boolean value specifying whether element width is automatically determined by its style and contents.  
    Public PropertyGets or sets the element's bounds (size and location) within its parent element, in pixels.  
    Public PropertyGets a list of child elements.  
    Public PropertyGets a value that indicates whether this Element or one of its children has the focus.  
    Public PropertyClient rectangle, in pixels. This discounts margins, borders, and padding.  
    Public PropertyGets or sets whether the element is enabled (can receive mouse and keyboard messages).  
    Public PropertyGets or sets whether the element is focusable (receives keyboard messages).  
    Public PropertyGets a value that indicates whether this Element has the focus.  
    Public PropertyGets 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 PropertyGets a value that indicates the element has a non-empty Element.Children collection.  
    Public PropertyElement height. Set to -1 to let the element calculate it automatically.  
    Public PropertyGets or sets whether the element is hit-testable (receives mouse messages).  
    Public PropertyGets the System.Windows.Forms.Control that is hosting this Element.  
    Public PropertyGets or sets whether the value of RightToLeft property is inherited from the parent element.  
    Public PropertyGets a value that indicates this element needs to be laid out.  
    Public PropertyGets whether this element and all its ancestors are enabled.  
    Public PropertyGets whether this element can currently receive the focus.  
    Public PropertyGets or sets whether the element should be displayed using the Style.Hot style.  
    Public PropertyGets or sets whether the element should be displayed using the Style.Pressed style.  
    Public PropertyGets whether this element and all its ancestors are visible.  
    Public PropertyGets or sets the horizontal position of the element within its parent.  
    Public PropertyGets the portion of the element that renders below the baseline. Usually non-zero only for text elements, depends on font.  
    Public PropertyGets or sets the location of the element within its parent.  
    Public PropertyGets the element's parent, or null if this is the root element.  
    Public PropertyGets the element's style, or a default style if the element doesn't have one. This never returns null.  
    Public PropertyGets or sets whether the element should be drawn using right-to-left layout.  
    Public PropertyGets the element's top-level parent.  
    Public PropertyGets or sets whether the element should display a focus rectangle when it has focus.  
    Public PropertyGets or sets the size of the element.  
    Public PropertyGets or sets the Style object used to render this Element.  
    Public PropertyGets or sets the vertical position of the element within its parent.  
    Public PropertyGets or sets a value indicating if the contents was successfully validated.  
    Public PropertyGets or sets whether the element is visible.  
    Public PropertyElement width. Set to -1 to let the element calculate it automatically.  
    Top
    Public Methods
     NameDescription
    Public Methodstatic (Shared in Visual Basic)  
    Public MethodReturns a clone of this element.  
    Public Methodstatic (Shared in Visual Basic)Finds the Element that is represented by a given hot key.  
    Public MethodSets the focus to the host control and to this Element within the host control.  
    Public Methodstatic (Shared in Visual Basic)Gets a System.Drawing.Bitmap from the application's embedded resources.  
    Public MethodOverloaded. 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  
    Public Methodstatic (Shared in Visual Basic)Gets an System.Drawing.Image from the application's embedded resources.  
    Public MethodNavigates up the tree to find an ancestor of a given type.  
    Public MethodReturns the scroll origin (override to implement non-scrolling areas).  
    Public MethodReturns the element at a given point.  
    Public MethodOverloaded. Invalidates this Element within the host control.  
    Public MethodDetermines whether this element is a child of another element.  
    Public MethodDetermines whether the specified key is a regular input key or a special key that requires preprocessing.  
    Public MethodOverloaded. Lays out this element based on its style and contents.  
    Public MethodOverloaded. Provides the size, in pixels, of the specified content drawn on the specified System.Drawing.Graphics surface.  
    Public MethodAdjusts the location of this element by the specified amount.  
    Public MethodCalled by the host control when the user clicks this Element.  
    Public MethodCalled by the host control when the user double-clicks this Element.  
    Public MethodCalled by the host control when this Element receives the focus.  
    Public MethodCalled by the host control when the user presses a key and this Element has the focus.  
    Public MethodCalled by the host control when the user presses a character key and this Element has the focus.  
    Public MethodCalled by the host control when the user releases a key and this Element has the focus.  
    Public MethodCalled by the host control when this Element loses the focus.  
    Public MethodCalled by the host control when the user presses a mouse button over this Element.  
    Public MethodCalled by the host control when the mouse enters this Element.  
    Public MethodCalled by the host control when the mouse enters this Element, even if another element has captured the mouse.  
    Public MethodCalled by the host control when the mouse leaves this Element.  
    Public MethodCalled by the host control when the mouse leaves this Element, even if another element has captured the mouse.  
    Public MethodCalled by the host control when the user releases the left mouse button over a disabled Element.  
    Public MethodCalled by the host control when the mouse moves over this Element.  
    Public MethodCalled by the host control when the user releases a mouse button over this Element.  
    Public MethodHandles MouseWheel events.  
    Public MethodCalled by the host control after the element has been validated.  
    Public MethodCalled by the host control when the element is about to lose focus.  
    Public MethodComputes the location of the specified screen point into client coordinates.  
    Public MethodComputes the location of the specified client point into screen coordinates.  
    Public MethodRenders the element into a given rectangle.  
    Public MethodRenders the child elements into a given rectangle.  
    Public MethodRender this element's content (no children).  
    Public MethodOverloaded. Provides constants for rescaling the control when a DPI change occurs.  
    Public MethodOverloaded. Marks this element as dirty, forcing all parent and child elements to be laid out.  
    Public MethodOverloaded.   
    Public Methodstatic (Shared in Visual Basic)  
    Top
    Protected Methods
     NameDescription
    Protected MethodFinalizes the user interface. This method is called when element is removed from UI.  
    Protected MethodGets the DPI value for the display device where the Element.HostControl is currently being displayed.  
    Protected Method  
    Protected MethodCalled by the host control when the state of this Element changes.  
    Protected MethodOverloaded. Scales the Style instance uses the DeviceDpi value if this element has a Element.HostControl.  
    Protected MethodOverloaded. Scales the Style instance to custom display device dpi.  
    Protected Method  
    Top
    See Also