Content controls

J

jo

What is the difference between these two ways creating a content
control in visual studio 2008?

Imports WordTools = Microsoft.office.tools.word
Dim RichTextControl1 as WordTools .RichTextContentControl
RichTextControl1 =
me.controls.AddRichTextContentControl("ControlName")

Dim RichTextControl1 As Word.ContentControl =
Me.ContentControls.Add(Word.WdContentControlType.wdContentControlText)

Is there any advantages to using one way over the other?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top