![]() ![]() To filter a building block list based on the position of the cursor, you need to use the ContentControlOnEnter event. ObjCC.BuildingBlockCategory = "Tertiary Headings" Sub CreateFilteredContentControl_SampleOneB() The following example shows how to filter a building block list to include only the building blocks within a category of a specified gallery. You can filter a building block list even further by specifying a specific category within the gallery. WdContentControlBuildingBlockGallery, Selection.Range) Sub CreateFilteredContentControl_SampleOneA() Run the code in the "Create a Custom Building Block Gallery" topic before running the code in this topic. The following example shows how to filter a building block list to a specific gallery. To learn how to create a custom building block gallery, see Create a Custom Building Block Gallery. To start, you need a custom building block gallery. However, you can also programmatically filter the list of building blocks based on the position of the cursor or on the value of another content control. You can filter the list of building blocks for a content control when you create the content control. You can further filter the list of building blocks by setting the BuildingBlockCategory property for the content control. To filter a building block list for a content control, you use the BuildingBlockType property for the content control. ![]() You can do this is by filtering the list of building blocks that are shown for a content control. When you use content controls together with building blocks, you can help users by indicating what content they can insert and by limiting their choices. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |