AppendText ( "Block content control" ) //Adds new table to the block content control WTable table = blockContentControl. AddParagraph () as WParagraph //Adds new text to the paragraph paragraph. RichText ) as BlockContentControl //Adds new paragraph in the block content control WParagraph paragraph = blockContentControl. AddBlockContentControl ( ContentControlType. Body //Adds block content control into Word document BlockContentControl blockContentControl = textBody. AddSection () WTextBody textBody = section. Creates a new Word document WordDocument document = new WordDocument () //Adds new section to the document IWSection section = document. ![]() AppendPicture ( imageStream ) //Creates memory stream MemoryStream outputStream = new MemoryStream () //Saves and closes the Word document instance document. Read ) //Adds image to the paragraph paragraph. AddParagraph () as WParagraph //Gets the image stream FileStream imageStream = new FileStream (, FileMode. ResetCells ( 2, 3 ) //Adds new paragraph to the block content control paragraph = blockContentControl. AddTable () as WTable //Specifies the total number of rows and columns table. So be sure you won't need to update it again in the future.//Creates a new Word document WordDocument document = new WordDocument () //Adds new section to the document IWSection section = document. If you do this, PERRLA will no longer be able to find or work with that content. You can remove the Content Control box but leave its content by right-clicking the Content Control and selecting Remove Content Control. (This functionality has actually now been added to PERRLA.) One example is if you are trying to join two citations into a single citation. However, there may be times when you want to break a Content Control and edit its content directly. You can find instructions on how to do that here. We recommend that you use PERRLA's features to edit the content of a Reference or Citation. There are times when it may be necessary to edit the content inside a Content Control. Editing the content inside a Content Control Just like an object or text, you can still move Content Controls around your paper by either cutting & pasting them or by dragging them with their handle. Second, Content Controls can be moved around your paper. Once the blue/grey box disappears, you can start typing again. You can move your cursor outside of the Content Control using the left or right arrow keys on your keyboard. If you are trying to place your cursor beside a content control (like a citation), if the cursor is inside the Content Control you'll be able to see the blue/grey box and you won't be able to type. This is for two reasons: it keeps your format specific content correctly formatted & it's part of how Word works. There's two things you'll want to know when working with text inside a Content Control.įirst, you can't edit the text inside Content Controls. ![]() Do I need to do anything special with Content Controls? But, if you put your cursor inside a Content Control, you'll be able to see it as a blue or grey outlined box (it looks like a solid grey box if you just hover over it). ![]() This allows PERRLA to find, organize, and update those items as you keep typing.įor instance, by putting the References inside a Content Control, we are able to keep the references sorted alphabetically in your papers.Ĭontent Controls look like normal text most of the time. When you add a Reference or a Citation to your paper, PERRLA adds it into the text inside a Content Control box. The two most common Content Controls are for References and Citations. What is a Content Control?Ĭontent Controls are like digital boxes that allow PERRLA to insert text into your Word document. The PERRLA Add-in interacts with Microsoft Word using their updated tools called Content Controls.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |