Skip to main content

CustomDrawEmptyAreaEventArgs.EmptyAreaRegion Property

Gets the region which is occupied by the empty area.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.1.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