![]() If Me.Application.ActiveDocument Is Nothing Thenĭim vstoDoc As Document = (Me.Application.ActiveDocument) ![]() private .RichTextContentControl richTextControl1 To use this code, paste it into the ThisAddIn class in your project, and call the AddRichTextControlAtSelection method from the ThisAddIn_Startup method. ![]() This version is for an application-level add-in. RichTextControl1.PlaceholderText = "Enter your first name" RichTextControl1 = Me.Controls.AddRichTextContentControl("richTextControl1") Me.Paragraphs(1).Range.InsertParagraphBefore() Private Sub AddRichTextControlAtSelection() RichTextControl1.PlaceholderText = "Enter your first name" ĭim richTextControl1 As .RichTextContentControl Private void AddRichTextControlAtSelection() ![]() To use this code, paste it into the ThisDocument class in your project, and call the AddRichTextControlAtSelection method from the ThisDocument_Startup method. This version is for a document-level customization. The following code example adds a new RichTextContentControl to the beginning of the document. ContentControlBase IComponent ISupportInitialize IDisposable IBindableComponent Examples
0 Comments
Leave a Reply. |