Back to Devexpress

BaseLayoutItemHitInfo.Item Property

windowsforms-devexpress-dot-xtralayout-dot-hitinfo-dot-baselayoutitemhitinfo.md

latest3.0 KB
Original Source

BaseLayoutItemHitInfo.Item Property

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

Namespace : DevExpress.XtraLayout.HitInfo

Assembly : DevExpress.XtraLayout.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public virtual BaseLayoutItem Item { get; }
vb
Public Overridable ReadOnly Property Item As BaseLayoutItem

Property Value

TypeDescription
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.

See Also

HitType

BaseLayoutItemHitInfo Class

BaseLayoutItemHitInfo Members

DevExpress.XtraLayout.HitInfo Namespace