public class LayoutFactory : ILayoutFactory
Public Class LayoutFactory Implements ILayoutFactory
public class LayoutFactory : ILayoutFactory
Public Class LayoutFactory Implements ILayoutFactory
Creating a new layout simply generates a new layout project item that appears in the Layouts folder in the Contents pane. The next logical steps are to create new layout elements. Refer to the ElementFactory to add new elements to layout.
A new layout project item is not automatically opened in a layout view pane. Use methods in the LayoutFrameworkExtender to open a layout project item in a pane.
//Create a new, basic layout and open it. //Create layout with minimum set of parameters on the worker thread Layout lyt = await QueuedTask.Run(() => { var newLayout = LayoutFactory.Instance.CreateLayout(8.5, 11, LinearUnit.Inches); newLayout.SetName("New 8.5x11 Layout"); return newLayout; }); //Open new layout on the GUI thread await ProApp.Panes.CreateLayoutPaneAsync(lyt);
System.Object
ArcGIS.Desktop.Layouts.LayoutFactory
Target Platforms: Windows 11, Windows 10