Table of Contents

Interface IReferenceContextMenuHost

Namespace
Tripous.Desktop
Assembly
Tripous.Desktop.dll

Provides command handling for a reference context menu.

public interface IReferenceContextMenuHost
Extension Methods

Methods

CanExecute(ReferenceMenuCommandContext)

Returns true when a reference menu command can execute.

bool CanExecute(ReferenceMenuCommandContext Context)

Parameters

Context ReferenceMenuCommandContext

The command context.

Returns

bool

True if the command can execute; otherwise, false.

CanOpenRefContextMenu(ReferenceContextMenu)

Returns true when a reference context menu can open.

bool CanOpenRefContextMenu(ReferenceContextMenu RefContextMenu)

Parameters

RefContextMenu ReferenceContextMenu

The reference context menu.

Returns

bool

True if the context menu can open; otherwise, false.

Execute(ReferenceMenuCommandContext)

Executes a reference menu command.

object Execute(ReferenceMenuCommandContext Context)

Parameters

Context ReferenceMenuCommandContext

The command context.

Returns

object

The command result.