iwan.z
iwan.z

Reputation: 560

Extend context menu in the subject of outlook 2010/2013

I have a small Outlook 2010/2013 Add-In written in C#. It adds additional context menu entries if the selected text in the Email body fits some pattern. For this I used a ribbon.xml like:

<?xml version="1.0" encoding="UTF-8"?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
    <ribbon/>
    <contextMenus>
        <contextMenu idMso="ContextMenuReadOnlyMailText">
            <button id="DoSomethingButton" insertAfterMso="Copy" getLabel="GetLabel"
                getImage="GetImage" onAction="DoSomething" getVisible="IsTextSelected"
                getScreentip="GetTip" />
        </contextMenu>
    </contextMenus>
</customUI>

That works fine. Now I want to extend that it also add some context menu entries if the user selects some text in the subject of an Email.

Extend the context menu

Unfortunately I was not able to find any Microsoft Documentation how to do that. I am sure this is possible, because auto-correct also works in the subject field, but I just cannot find how. Can anyone help?

Upvotes: 1

Views: 757

Answers (3)

Satish Kumar
Satish Kumar

Reputation: 1

What you mean by outlook 2010/2013 addin? Single addin supporting both the versions of outlook?

As there are few functionalities which are deprecated from 2010.

Upvotes: 0

Dmitry Streblechenko
Dmitry Streblechenko

Reputation: 66215

That menu is not extensible. Spellchecker is an integral part of that control, it is not added dynamically by an addin.

Upvotes: 2

Eugene Astafiev
Eugene Astafiev

Reputation: 49395

The Ribbon UI extensibility model doesn't provide any idMso values for these context menus. You can all possible customizations described in the Extending the User Interface in Outlook 2010 article in MSDN.

Upvotes: 0

Related Questions