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

TCustomdxPSExplorerItem.CanAccept(TCustomdxPSExplorerItem) Method

Indicates whether the item can serve as the parent for the specified item.

#Declaration

Delphi
function CanAccept(AnItem: TCustomdxPSExplorerItem): Boolean; virtual;

#Parameters

Name Type
AnItem TCustomdxPSExplorerItem

#Returns

Type
Boolean

#Remarks

The CanAccept method returns True if the item can serve as the parent for the item specified by the AnItem parameter; otherwise, the method returns False. This method is called when moving a report item or a folder to another position. Actually, this method is used by the CanMoveTo method that indicates whether an item can be moved to the specified location.

As implemented in the TCustomdxPSExplorerItem class, the CanAccept method simply returns False. It is overridden in the TdxPSExplorerFolder class to return a proper value.

See Also