Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CustomDrawEmptyAreaEventArgs.EmptyAreaRegion Property

Use the EmptyRectangles property to get the region occupied by the empty area.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public Region EmptyAreaRegion { get; }

#Property Value

Type Description
Region

A Region object which represents the interior of the empty area.

#Remarks

Empty areas appear when cells do not occupy the entire area of a control. This can occur when there are only a few nodes, the total width of all the columns is less than the Tree List’s width or as a result of vertical scrolling. The following image shows a Tree List whose empty area has been painted light green.

CustomDrawEmptyArea_EmptyAreaRegion

The Tree List’s empty area includes the area occupied by the empty rows which is located under the last node. This area can also be custom painted using the TreeList.CustomDrawEmptyArea event. Its bounding rectangle is returned by the CustomDrawEmptyAreaEventArgs.EmptyRows property.

See Also