Available only in Word 2010/2013.Ĭontent is displayed in a rich text control when opened in Word 2007.Ī building block gallery enables users to select from a list of document building blocks to insert into a document. Like plain text, limits text to a single paragraph that cannot contain any formatting.Ī check box provides a UI that represents a binary state: selected or cleared. Unlike a combo box, the drop-down list does not let users enter a custom input.Ĭontains a calendar control. Input limited to a single paragraph of text.Ī drop-down list displays a drop-down list of list entries that users can select. Prohibits users from inserting any other Word objects or any text.Ĭontains a drop-down selection of list entries that users can select and text box that user can edit directly.Īll or nothing formatting. For example, if you italicize one word of a sentence that is in a plain text control, all the text inside the control is italicized.įills the content control with a single image. It cannot contain other items, such as tables, pictures, or other content controls.Īll or nothing formatting. Content ControlsĪ rich text control can contain custom formatted text or other items, such as tables, pictures, or other content controls.īefore Word 2013, rich text controls cannot be bound to an XML data node.Ī plain text content control is limited to plain text in a single or multiple paragraphs. Some of these controls are not available or have less capability in earlier versions. ![]() Table 1 below provides a general description of the ten types of content controls available in Word 2013. I call them "Word's Diamonds in the Rough" because, despite their enormous potential, Microsoft has failed miserably in resolving long standing bugs and in providing enhancements to functionality to fully realize this potential. ugh, it just gets super hairy from there.This Microsoft Word Help & Microsoft Word Tips page serves to introduce Content Controls and list links to several more specific articles on Content Controls that are available on this website.Ĭontent controls were introduced with the release of Word 2007 and have changed little with the subsequent release of Word 2010. put a paragraph after it, somehow, seems to do the trick. I suppose I can detect this watching for a change in "cc.ParentContentControl" - but then I'd have to undo it (what if I'm in the middle of an UndoRecord, I don't want to undo the whole thing.) - and also, I have to figure out a way to prevent the removal of the content control. In this situation, calling nothing but ".ConvertToText" does almost exactly what it should - it converts the Table to text, but it moves the child control outside of the parent. but there is zero content after the final child control). the parent can contain tables, other content controls, paragraphs, etc., etc. ![]() At any rate, allowed or not - Word doesn't prevent users from doing it, so I have to account for it.Īs for the approach, it gets me a bit further, but there's still some circumstances where it doesn't work quite right - for example, if the content control is a child content control of a parent, and it happens to be the very last piece of content in the parent (i.e. ![]() Again, you can delete the trailing paragraph from within Word's UI (I posted the steps above). I was unaware of this requirement about content controls requiring empty paragraphs in them. I've just been super busy and have put this issue on the back burner until now. Hey, thanks for the response! Sorry on getting back so late.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |