![]() To add WordArt at the cursor location in a VSTO Add-in ![]() :::code language="csharp" source="./vsto/codesnippet/CSharp/Trin_VstcoreWordAutomationCS/ThisDocument.cs" id="Snippet110"::: VB :::code language="vb" source="./vsto/codesnippet/VisualBasic/Trin_VstcoreWordAutomationVB/ThisDocument.vb" id="Snippet110"::: :::code language="csharp" source="./vsto/codesnippet/CSharp/Trin_VstcoreWordAutomationCS/ThisDocument.cs" id="Snippet109"::: VB :::code language="vb" source="./vsto/codesnippet/VisualBasic/Trin_VstcoreWordAutomationVB/ThisDocument.vb" id="Snippet109":::Ĭall the xref.Shapes.AddTextEffect%2A method of the xref.Shapes object in the document. Get the left and top position of the current cursor location. To add WordArt at the cursor location in a document-level customization The procedure is different for document-level customizations and VSTO Add-ins. You can insert WordArt into a document at the current cursor location. The text is added to your document with the selected WordArt style applied. In the Text group, click WordArt, and then select a WordArt style.Īdd the text that you want to appear in the document to the Edit WordArt Text dialog box and click OK. ![]() Place your cursor where you want to insert the WordArt in the document. To add WordArt to a Word document at design time If you are developing a document-level customization, you can add WordArt to the document at design time. :::code language="csharp" source="./vsto/codesnippet/CSharp/Trin_VstcoreWordAutomationCS/ThisDocument.cs" id="Snippet108"::: VB :::code language="vb" source="./vsto/codesnippet/VisualBasic/Trin_VstcoreWordAutomationVB/ThisDocument.vb" id="Snippet108"::: To add a picture at the cursor locationĬall the xref.InlineShapes.AddPicture%2A method of the xref.InlineShapes collection and pass in the name of the file. You can insert a picture into a document at the current cursor location. The picture is added to your document at the current cursor location. In the Insert Picture dialog box, navigate to the picture you want to insert, and click Insert. In the Illustrations group, click Picture. Place your cursor where you want to insert the picture in the document. ![]() To add a picture to a Word document at design time If you are developing a document-level customization, you can add a picture to the document at design time. These special text effects are drawing objects that you can customize and insert into your document. ![]() WordArt enables you to add decorative text to Microsoft Office Word documents. You can add pictures and drawing objects to your documents at design time or during run time. How to: Programmatically add pictures and Word Art to documents ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |