Skip to content

Latest commit

 

History

History
57 lines (34 loc) · 1.2 KB

Project.Application.LayoutSelectionNow.md

File metadata and controls

57 lines (34 loc) · 1.2 KB
title keywords f1_keywords ms.service api_name ms.assetid ms.date ms.localizationpriority
Application.LayoutSelectionNow method (Project)
vbapj.chm2399
vbapj.chm2399
project-server
Project.Application.LayoutSelectionNow
79d8521a-2760-7e73-f430-f39dc7747cd8
06/08/2017
medium

Application.LayoutSelectionNow method (Project)

Positions the selected task boxes in the active Network Diagram view according to its layout options.

Syntax

expression. LayoutSelectionNow

expression A variable that represents an Application object.

Return value

Boolean

Remarks

Layout options can be set with the BoxLayout and BoxLinks methods.

The LayoutSelectionNow method is only available when a Network Diagram view is active.

Example

The following example positions the selected boxes in a top-down layout.

Sub Layout_SelectionNow() 
 
 'Activate Network Diagram view 
 ViewApply Name:="Network &Diagram" 
 
 BoxSet Action:=pjBoxAddToSelection, TaskID:=2 
 BoxLayout LayoutMode:=pjLayoutManual, LayoutScheme:=pjLayoutTopDownByDay 
 
 LayoutSelectionNow 
End Sub

[!includeSupport and feedback]