Search
ComponentBase Members
Constructors Properties Methods Events
 


Represents the abstract base of all components.

The following tables list the members exposed by the ComponentBase type.

 Protected Constructors

  Name Description

ComponentBase

Initializes a new instance of the ComponentBase class.

 Public Properties

  Name Description

AutoProperty

Gets or sets a value indicating whether the component is defined as a property on the client side.

Bounds

Gets or sets the calculated bounds of this component relative to its parent.

ChildCount

Gets the number of child components of this component.

Focusable

Gets or sets a value indicating whether the component can receive the input focus.

GridColumn

Gets or sets the index of the grid column this component will be associated with when added to a GridPanel.

GridRow

Gets or sets the index of the grid row this component will be associated with when added to a GridPanel.

Height

Gets or sets the explicit height of this component or float.NaN to auto-size the component.

HorizontalAlignment

Gets or sets the horizontal alignment of this component relative to its parent.

IsEnabled

Gets or sets a value indicating whether the component is enabled.

IsFocused

Gets or sets a value indicating whether this component currently holds the input focus.

IsHitTestVisible

Gets or sets a value indicating whether this component and all its children are subject to hit-testing operations.

IsInteractive

Gets or sets a value indicating whether this component can be interacted with.

Name

Gets or sets the name of the component.

Parent

Gets the parent component, if the current component is hosted.

VerticalAlignment

Gets or sets the vertical alignment of this component relative to its parent.

Visible

Gets or sets a value indicating whether the component is visible.

Width

Gets or sets the explicit width of this component or float.NaN to auto-size the component.

 Protected Properties

  Name Description

ParentHost

Gets the host containing this component, if any.

 Public Methods

  Name Description

ArrangeComponents

Recursively arranges the child components, within the specified space and using the specified graphics for measurement purposes.

Contains

Checks if the specified component is contained in the hierarchy defined by the current component.

Draw

Renders the component in the specified IGraphics.

Find

Returns the component with the specified name within the hierarchy defined by the current component.

GetCursor

Gets the cursor to display when the mouse is at the specified position.

GetDesiredSize

Gets the desired size of this component in case the Width and/or Height have not been explicitly specified.

Invalidate

Invalidates the visual appearance of the component.

InvalidateLayout

Invalidates the layout of this component and all its children.

OnKeyDown

Called when a key is pressed when this component has the input focus.

OnKeyPress

Called when a character key is pressed when this component has the input focus.

OnKeyUp

Called when a key is released when this component has the input focus.

OnMouseDown

Called when the left mouse button is pressed while the pointer is over this component.

OnMouseMove

Called when the mouse is moved while this component tracks the mouse events.

OnMouseUp

Called when the left mouse button is released while this component tracks the mouse events.

ToDocument

Converts a point from local to document coordinates.

ToLocal

Converts a point from document to local coordinates.

ToParent

Converts a point from local coordinates to the specified parent's coordinates.

 Protected Methods

  Name Description

LoadFrom

Deserializes the component from the specified reader.

LoadFromJson

Loads the component from a JSON object.

LoadFromXml

Deserializes the component from an XML element.

OnAddedToParent

Invoked when the component is added to a parent component.

OnGotFocus

Raises the GotFocus event.

OnGotFocus

Invokes when the component gains the input focus.

OnLostFocus

Raises the LostFocus event.

OnLostFocus

Invokes when the component loses the input focus.

OnMouseMove

Raises the MouseMove event.

OnRemovedFromParent

Invoked when the component is removed from a parent component.

OnUnitChanged

Invoked when the measure unit of the document containing the component has changed.

OnValidated

Raises the Validated event.

OnValidating

Raises the Validating event.

OnZoomChanged

Invoked when the zoom factor of the document containing the component has changed.

SaveTo

Serializes the component to the specified writer.

SaveToJson

Saves the component as a JSON object.

SaveToXml

Serializes the component into an XML element.

SerializeSubcomponents

Invoked to query whether the underlying component structure should be automatically serialized or serialized by the user.

 Public Events

  Name Description

GotFocus

Raised when the component receives the input focus.

LostFocus

Raised when the component loses the input focus.

MouseMove

Raised when the mouse moves over the component.

Validated

Raised after the component has lost input focus.

Validating

Raised when the component is about to lose input focus in order to validate it.

 See Also