![]() For Each cc In ActiveDocument.ContentControls. If you click on the Show/Hide button ¶ (or press Ctrl+Shift+8 (above the U and I keys on a QWERTY keyboard) to toggle on the display of hidden text, you will still see the 'Click here to enter text. We will inform you when a property is available to quickly retrieve the default text of a content control. For the Print button on the Office button menu (and the Ctrl+P shortcut), add this modified version as a second macro in the same template: Sub FilePrint () Dim cc As ContentControl. Select the 'Click here to enter text.' in the content control and then format the font so that it is hidden. Text 6- Protecting a Form Creating Forms- Actions Creating Forms - Exercises. ![]() IsDefaultText = StyleIdentifier.PlaceholderText ? true : false REPEATING SECTION CONTENT CONTROL- (CONT'D.): 11. 6 contributors Feedback In this article Content control improvements in Word 2013 New Word 2013 content control object model members Learn how Microsoft Word 2013 content controls enable a larger range of structured document scenarios. Run firstRun = (Run)tag.GetChild(NodeType.Run, 0, true) This inserts a new field with a bounding box. ![]() Next, click on the Rich Text Content Control box in the Controls group to add rich text content control. Then, select the Developer tab in the Ribbon menu. Click on a location in the document where you want to add a control. Retrieve the first run of the control. Insert and Change Rich Text Content Control. Find if the current text of the control is the default text or not. If you need to check if the content of the tag is default text or proper content you can check the Runs of text like in the code below.If the text is default then the StyleIdentifier will be “PlaceholderText”. The default text of a Structured document tag is stored as child nodes just like any other content of the control.įor example you can easily find the text and change it like below: StructuredDocumentTag tag = (StructuredDocumentTag)doc.GetChild(NodeType.StructuredDocumentTag, 0, true)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |