[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Another great feature of StartFromScratch mode is that it works on a per-document basis.



News Is Out! CAON Launches R&D Program to Further Production!

Chan-On International Inc.
Symbol: CAON
Friday Close: $0.72 UP 4.35%

Read the news. This company is pulling no punches. They has engaged one
of the countries top R&D facilities to expand their technology. Get on
CAON today!

Add that interface and have Visual Studio automatically implement its
methods for you. Since slowdowns reflect poorly on both Office and the
add-ins, Office provides a feature for COM add-ins known as
demand-loading.

Replacing the menus and command bars of previous versions of Office, the
Ribbon organizes features and functions into context sensitive tabs.

This restriction protects the UI layout and guards add-ins against
conflicts with each other and future versions of Office.

First, you're separating the UI from the code.

Second, it's designed to be forward-compatible with future versions of
Office.
On shutdown, the add-in's registry key is changed to DemandLoad.

The Ribbon codebehind handles the loading of and the events of the
Ribbon.
The Shape object has a TextFrame property that returns a TextFrame
object, which exposes a TextRange object. Images can be stored however
an add-in wants, but in this example let's add the images as embedded
resources just as with the XML. This is where the tag property comes in:
it's a string property that isn't used in the UI, but is passed on to
the add-in's code for use there.

This has numerous advantages for the add-in writer.



Reply to: