0

In the Word Web Add-in I can insert a content control by context.document.getSelection().insertContentControl() and get all of them by context.document.contentControls how can I do that in Outlook Web Add-in?

1 Answer 1

1

Content Controls are exclusive to Word. Outlook uses either HTML or plain text.

Sign up to request clarification or add additional context in comments.

3 Comments

That's correct. In case you want to access or update the content of the message. There are some APIs referenced here: learn.microsoft.com/en-us/outlook/add-ins/…
So can't I cast Outlook document to Word document like I can do in VSTO .net? example: var inspector = Globals.ThisAddIn.Application.ActiveInspector(); var item = (MailItem)inspector.CurrentItem; var document = (Microsoft.Office.Interop.Word.Document)inspector.WordEditor; var range = document.Application.Selection.Range; var rng = (object)range; var contentControl = document.ContentControls.Add(WdContentControlType.wdContentControlRichText, ref rng);
No, that isn't possible.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.