Back to Devexpress

LayoutViewHitInfo.LayoutItem Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-layout-dot-viewinfo-dot-layoutviewhitinfo-d24965cb.md

latest2.6 KB
Original Source

LayoutViewHitInfo.LayoutItem Property

Gets a card layout item located under the test point.

Namespace : DevExpress.XtraGrid.Views.Layout.ViewInfo

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
public BaseLayoutItem LayoutItem { get; set; }
vb
Public Property LayoutItem As BaseLayoutItem

Property Value

TypeDescription
BaseLayoutItem

A BaseLayoutItem descendant located under the test point. null ( Nothing in Visual Basic) if the test point doesn’t belong to any layout item.

|

Remarks

In addition to regular card fields, cards can display the following card layout items:

When the test point belongs to any of these card elements, you can use the LayoutItem property to access this element. When the test point belongs to a card field, or doesn’t belong to any card layout item, the LayoutItem property returns null. See the LayoutViewHitInfo.InLayoutItem property to check whether the test point belongs to a card layout item.

See Also

InLayoutItem

InField

LayoutViewHitInfo Class

LayoutViewHitInfo Members

DevExpress.XtraGrid.Views.Layout.ViewInfo Namespace