1.
You are developing an Office Visio 2007 Shared Add-in. You construct an event sink class that listens to events from the Visio 2007 Application, Document, Page, and Shape objects. The VisEventProc function has the following signature: Public Function VisEventProc( ByVal eventCode As Short, ByVal source As Object, ByVal eventId As Integer, ByVal eventSequenceNumber As Integer, ByVal subject As Object, ByVal moreInformation As Object) As Object You need to construct a switch to identify the object that raised the event. Which parameter should you use?
2.
You are developing an Office Visio 2007 Shared Add-in. You need to prevent shape deletions by using custom logic. What should you do?
3.
You need to develop an Office Visio 2007 solution for 1,000 computers that run Visio 2007. The solution must meet the following requirements: The solution must not require the installation of additional components, tools, or DLLs. Users must be able to customize the solution without installing additional development tools. What should you develop?
4.
You are developing an Office Visio 2007 Shared Add-in. You need to modify the add-in to perform an action after the Visio 2007 application flushes its events queue. What should you do?
5.
You have a Windows Forms application that contains an embedded Visio Drawing Control. You have an Office Visio 2007 drawing saved as C:\Template.vsd. You need to configure the application to load and display the drawing as a template by using the Visio Drawing Control. Which code should you add to the application?
6.
You create a custom template and several custom stencils. You need the stencils to open automatically when a new file is created from the template. What should you do?
7.
You are developing an Office Visio 2007 Shared Add-in. You create an object named objShape that references a new shape. You need to modify the add-in to identify the shape if the shape is moved to a different page. Which property of objShape should you reference?
8.
You are developing an Office Visio 2007 Shared Add-in. You create three objects named objMaster, objPage, and objWindow. The object objMaster references a local copy of the master. The object objPage references the current page. The object objWindow references the active window. You need to create several shape instances of the master on the current page at specific coordinates in the active window. Which method should you use?
9.
You are creating an application that will be used to connect two two-dimensional (2-D) shapes by using a Dynamic Connector shape. In your application, you create an object named myVisioApp that references the Visio Application object. You need to add code to your application to connect the 2-D shapes. What code should you add?
10.
You develop an Office Visio 2007 Shared Add-in that contains custom code. The add-in code contains three variables: objShape, objMaster, and objCell. The variable objShape references a Visio shape. The variable objMaster references a Visio master. The variable objCell references a Visio cell. The relevant code is displayed in the following table: You need to modify the add-in to support the creation of master shapes in different languages by using the same code base. Which line of code should you modify?