public VisioLayoutOptions() { var flowchart = new VisioAutomation.Models.LayoutStyles.FlowchartLayoutStyle(); flowchart.LayoutDirection = LayoutStyles.LayoutDirection.TopToBottom; this.VisioLayoutStyle = flowchart; }
public void LayoutPage(Models.TargetPage targetpage, VisioAutomation.Models.LayoutStyles.LayoutStyleBase layout) { var pages = targetpage.Resolve(this._client); using (var undoscope = this._client.Undo.NewUndoScope(nameof(SetPageSize))) { layout.Apply(targetpage.Page); } }
public void LayoutPage(TargetPages targetpages, VisioAutomation.Models.LayoutStyles.LayoutStyleBase layout) { targetpages = targetpages.ResolveToPages(this._client); using (var undoscope = this._client.Undo.NewUndoScope(nameof(SetPageSize))) { foreach (var page in targetpages.Pages) { layout.Apply(page); } } }