SetContextDefaultMenuText Method
Topic Last Modified: 2006-11-30
The SetContextDefaultMenuText method is used to change the text of the New, Rename, and Delete options in the folder context menu. The SetContextDefaultMenuText method applies to the ExchangeTreeViewControl Class.
Syntax
Sub SetContextDefaultMenuText
(
ByVal contextNew As String,
ByVal contextRename As String,
ByVal contextDelete As String
)
void SetContextDefaultMenuText
(
string contextNew,
string contextRename,
string contextDelete
);
Parameters
contextNew
The value to which the text of the New option will be changed.
contextRename
The value to which the text of the Rename option will be changed.
contextDelete
The value to which the text of the Delete option will be changed.
Property Value/Return Value
Returns VOID.
Remarks
The default text value for the New option of the folder context menu is "New".
The default text value for the Rename option of the folder context menu is "Rename".
The default text value for the Delete option of the folder context menu is "Delete".
Example
In the following Visual Basic .NET example, the text of the New option of the context menu is changed to "New Folder", the text of the Rename option is changed to "Rename Folder", and the text of the Delete option is changed to "Delete Folder".
myTreeViewControl.SetContextDefaultMenuText("New Folder", _
"Rename Folder", _
"Delete Folder")
In the following C# example, the text of the New option of the context menu is changed to "New Folder", the text of the Rename option is changed to "Rename Folder", and the text of the Delete option is changed to "Delete Folder".
myTreeViewControl.SetContextDefaultMenuText("New Folder",
"Rename Folder",
"Delete Folder");