Dispaly ruler and the grid in powerpoint using VSTO project - vsto

I'm new to VSTO development. I need to add a ribbon menu to Power point . And this has a tick to enable ruler and the grid in power Point Slide. Is there any inbuilt method to active those via VSTO project.

You can display the grid lines with this line of code:
Application.DisplayGridLines = True
I'm seeing a way to display the ruler.
What is the scenario for displaying the ruler? Do you want to add button to custom ribbon that displays the ruler? If this is the case, you could use RibbonXML to include the built-in "Show Ruler" checkbox in custom ribbon.
http://msdn.microsoft.com/en-us/library/vstudio/aa942866.aspx

Related

How can one suppress the mini toolbar from appearing on the right-click event in Microsoft Word?

I am working on a custom vb.net application which uses Microsoft Word embedded in it. As the users are restricted to what kind of formatting they are allowed to do while modifying documents, we are using a template which contains custom ribbons and menus.
In the past we have also captured the right-click event to suppress the display of the built-in shortcut menu and mini toolbar.
We would now like to re-activate the right-click to bring up a modified shortcut menu. This we can do through macros and templates. However, we are not able to keep the mini toolbar from appearing on the right-click event. We have turned off the Word Option which automatically brings up the mini toolbar when one selects text, however, that does not affect the behavior of the right-click event.

VBA / VSTO > Powerpoint > Hide Secondary Context Menu

I have written a VSTO addin for Poweproint.
I am able to hide/disable most existing context menu buttons using the CustomUI XML config.
But cannot find how to access the secondary context menu (see below).
Not the whole thing. Just the top part (Style/Crop/New Comment)
What is the idMso for the mini context menu?
Ideally I would like to hide the mini context menu.

MSAccess VBA Enable/disable item on shortcut menu at runtime

I use several custom Shotcut Menu Bars in my MSAccess solution. If I use the built in shortcut menu bars they will automatically disable, grayed out, an item not available at the time of right clicking. How can I replicate this during run-time on my custom shortcut menu bars? Custom Shortcut Menu Bar In this example I would like to gray out the item "Send SMS" if the contact does not have mobile/cell number. I currently do this by having two different shortcut menus that is set at runtime, depending on if the number is available.

Refreshing Custom Ribbon Tab in Excel 2010 When Someone Clicks on the Tab

I've been writing a custom ribbon with VSTO (using VB.net and XML) and I have written a number of buttons who's labels & pressed states depend on the calculation mode that Excel is in.
The getPressed and getLabels callback functions check for the excel calculation mode but these are only called when the ribbon is first loaded or the buttons are clicked. If someone were to go into the "formulas" tab, change the calculation mode and then go back to the custom ribbon tab, the pressed states and labels on the buttons in this custom tab would now be incorrect.
Is there a way to trigger these callback functions to be called (eg a way to call the ribbon.invalidate() function) when someone clicks on the custom ribbon tab in Excel?

Excel VBA: How to turn code into a full on toolbar tool? [duplicate]

I am in the process of creating a VBA add-in for Excel 2010, and I used the "Custom UI Editor for Microsoft Office" tool to create my own ribbon.
However, I would like to give the user the option to load my add-in without displaying the ribbon, or with different parts of the ribbon visible.
With menus, I know you can completely control them programmatically, but ribbons seem to work differently.
Is there a way in VBA to not load my customUI.xml ribbon tabs on startup?
Is there a way to remove items from (or add items to) these tabs at runtime?
here is a whole slew of help on this subject Awesome Ribbon Help. I think points 2 and 3 are of particular interest to you.