Search
Component Members
Constructors Properties Methods
 


Represents a user interface component.

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

 Protected Constructors

  Name Description

Component

Initializes a new instance of the Component class.

 Public Properties

  Name Description

ActualHeight

A double value specifying the component's assigned height. Valid only after calling Arrange.

ActualWidth

A double value specifying the component's assigned width. Valid only after calling Arrange.

DesiredHeight

A nullable double value specifying the component's desired height. Valid only after calling Measure.

DesiredWidth

A nullable double value specifying the component's desired width. Valid only after calling Measure.

GridColumn

Gets or sets the column index of this component when placed inside a GridPanel.

GridRow

Gets or sets the row index of this component when placed inside a GridPanel.

Height

Gets or sets a fixed height for this component.

HitTestVisibility

Gets or sets the hit-test visibility of this component.

HorizontalAlignment

Gets or sets the horizontal alignment of this component inside the layout rectangle allocated by its parent panel.

Margin

Gets or sets the margin space around this component relative to the layout rectangle allocated by its parent panel.

RectInParent

Gets the boundaries of this component relative to its parent.

ToolTip

Gets or sets the component's tooltip text.

VerticalAlignment

Gets or sets the vertical alignment of this component inside the layout rectangle allocated by its parent panel.

Visibility

Gets or sets the visibility of this component.

Width

Gets or sets a fixed width for this component.

XInParent

A double value specifying the component's horizontal position relative to its parent.

YInParent

A double value specifying the component's vertical position relative to its parent.

 Public Methods

  Name Description

Arrange

Sets the location and size of this component relatively to its parent.

CreateController

Returns a ComponentController used to interact with this component.

Draw

Draws this component in specified RenderContext.

GetCursorHint

Invoked while the mouse is moved to let your application set the mouse cursor.

HitTest

Returns the component containing specified point.

Invalidate

Overloaded.  

InvalidateLayout

Invalidates the current layout and runs a new layout pass before next draw operation.

LocalToRoot

Transforms the specified point to the coordinate system of the root panel.

Measure

Measures the desired size of this component.

RootToLocal

Transforms the specified point to the coordinate system of this component.

Visit

Implements the visitor design pattern.

 Protected Methods

  Name Description

Add

Sums specified nullable double values.

ArrangeInRect

Arranges a child component in specified layout rectangle.

Max

Returns the larger of specified values.

 See Also