PagePorter Class Library

Global.GetPagePorterProject Method 

Returns the active PagePorter project.

[Visual Basic]
Public Shared Function GetPagePorterProject( _
   ByVal dte As DTE _
) As Project
[C#]
public static Project GetPagePorterProject(
   DTE dte
);

Parameters

dte
The DTE object of the Visual Studio instance.

Return Value

The Project object of the current selection, or null (Nothing in Visual Basic) if the project isn't a PagePorter project.

Remarks

A project is considered to be a PagePorter project if any of the following are true:

  1. All Solution Explorer selections refer to a single PagePorter project.
  2. There is only PagePorter project in the solution.
  3. There are more than one PagePorter projects in the solution and there is only one PagePorter startup project.

See Also

Global Class | Parastream.PagePorter Namespace