![]() If Me.Application.ActiveDocument Is Nothing Thenĭim vstoDoc As Document = (Me.Application.ActiveDocument) () īuildingBlockControl1 = 圜ontentControl(ĭim buildingBlockGaller圜ontrol1 As BuildingBlockGaller圜ontentControl private .BuildingBlockGaller圜ontentControl buildingBlockControl1 To use this code, paste it into the ThisAddIn class in your project, and call the AddBuildingBlockControlAtSelection method from the ThisAddIn_Startup method. This version is for an application-level add-in. Me.Paragraphs(1).Range.InsertParagraphBefore()īuildingBlockGaller圜ontrol1 = Me.Controls.AddBuildingBlockGaller圜ontentControl( _ Private Sub AddBuildingBlockGaller圜ontrolAtSelection() () īuildingBlockControl1 = 圜ontentControl(īuildingBlockControl1.PlaceholderText = "Choose an equation" īuildingBlockControl1.BuildingBlockCategory = "Built-In" īuildingBlockControl1.BuildingBlockType = ĭim buildingBlockGaller圜ontrol1 As .BuildingBlockGaller圜ontentControl ![]() Private void AddBuildingBlockControlAtSelection() To use this code, paste it into the ThisDocument class in your project, and call the AddBuildingBlockControlAtSelection method from the ThisDocument_Startup method. This version is for a document-level customization. The BuildingBlockGaller圜ontentControl displays equation building blocks that are provided by Microsoft Office Word. The following code example adds a new BuildingBlockGaller圜ontentControl to the beginning of the document. ![]() ![]() ContentControlBase IComponent ISupportInitialize IDisposable IBindableComponent Examples ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |