What code should you add?
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?
Which method should you use?
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?
Which property of objShape should you reference?
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?
What should you do?
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?
Which code should you add to the application?
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?
What should you do?
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?
What should you develop?
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?
What are three possible ways to achieve this goal?
You plan to create an Office Visio 2007 application. You need to prevent Visio 2007 from failing in the event that there is a fault in the application. What are three possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose three.)
What should you do?
You are developing an Office Visio 2007 Shared Add-in. You need to prevent shape deletions by using custom logic. What should you do?
Which parameter should you use?
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?