addin-express

What is the correct way to implement bullet functionality in powerpoint Autoshape

那年仲夏 提交于 2020-02-25 07:11:06
问题 I made a function to apply custom bullets up to 5 levels parent, level 1, level 2, level 3 and none. shapeR.TextFrame.Ruler.Levels[1].FirstMargin = 0; shapeR.TextFrame.Ruler.Levels[1].LeftMargin = (float)40.53543; shapeR.TextFrame.Ruler.Levels[2].FirstMargin = 60; shapeR.TextFrame.Ruler.Levels[2].LeftMargin = (float)100.53543; shapeR.TextFrame.Ruler.Levels[3].FirstMargin = 120; shapeR.TextFrame.Ruler.Levels[3].LeftMargin = (float)160.53543; shapeR.TextFrame.Ruler.Levels[4].FirstMargin = 180;

Programmaticaly disable existing button in outlook compose window ribbon

ぐ巨炮叔叔 提交于 2019-12-25 09:05:31
问题 Am writing an outlook add-in in c#. I would like to disable the "Permissions" button in the "Options" tab while composing a new email. Am currently using Addin express for creating the outlook add-in 回答1: You need to use command tag with the getEnabled attribute defined. For example: <?xml version="1.0" encoding="UTF-8"?> <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load"> <commands> <command idMso="Permissions" getEnabled="OnGetEnabled" /> </commands>