Skip to main content
A newer version of this page is available. .

BaseLayoutItemHitInfo.Item Property

Gets the layout item (regular group or tabbed group) positioned under the test point.

Namespace: DevExpress.XtraLayout.HitInfo

Assembly: DevExpress.XtraLayout.v19.1.dll

Declaration

public virtual BaseLayoutItem Item { get; }

Property Value

Type Description
BaseLayoutItem

A BaseLayoutItem descendant that specifies the layout item positioned under the test point.

Remarks

The following table shows which objects are returned in specific cases:

An object returned

The point belongs to:

LayoutControlItem

a regular Layout Item

EmptySpaceItem

an Empty Space Items.

LayoutControlGroup

a Layout Groups‘s caption or border.

The BaseLayoutItemHitInfo.IsGroup property returns true in this case.

TabbedControlGroup

a Tabbed Group‘s header or border.

The BaseLayoutItemHitInfo.IsTabbedGroup property returns true in this case.

null (Nothing in Visual Basic)

the point is outside the Layout Control

To get the type of the layout item’s element located under the test point use the BaseLayoutItemHitInfo.HitType property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Item property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also