Skip to main content

TCustomdxPSExplorerItem.CanAccept(TCustomdxPSExplorerItem) Method

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

Declaration

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