다음을 통해 공유


SetContextDragMenuText Method

Topic Last Modified: 2006-11-30

The SetContextDragMenuText method is used to change the text of the Move, Copy, and Cancel options in the drag-drop context menu. The SetContextDragMenuText method applies to the ExchangeTreeViewControl Class.

Syntax

Sub SetContextDragMenuText
(
ByVal contextMove As String,
ByVal contextCopy As String,
ByVal contextCancel As String
)
void SetContextDragMenuText
(
string contextMove,
string contextCopy,
string contextCancel
);

Parameters

contextMove

The value to which the text of the Move option will be changed.

contextCopy

The value to which the text of the Copy option will be changed.

contextCancel

The value to which the text of the Cancel option will be changed.

Property Value/Return Value

Returns VOID.

Exceptions

Remarks

The default text value for the Move option of the folder context menu is "Move".

The default text value for the Copy option of the folder context menu is "Copy".

The default text value for the Cancel option of the folder context menu is "Cancel".

Example

Visual Basic .NET

In the following example, the text of the Move option of the context menu is changed to "Move Folder" and the text of the Copy option of the context menu is changed to "Copy Folder". The default value for the Cancel option does not change.

myTreeViewControl.SetContextDragMenuText("Move Folder", _
                                         "Copy Folder", _
                                         "Cancel")

In the following C# example, the text of the Move option of the context menu is changed to "Move Folder" and the text of the Copy option of the context menu is changed to "Copy Folder". The default value for the Cancel option does not change.

myTreeViewControl.SetContextDragMenuText("Move Folder",
                                         "Copy Folder",
                                         "Cancel");