Esempio n. 1
0
        public VisioLayoutOptions()
        {
            var flowchart = new VisioAutomation.Models.LayoutStyles.FlowchartLayoutStyle();

            flowchart.LayoutDirection = LayoutStyles.LayoutDirection.TopToBottom;
            this.VisioLayoutStyle     = flowchart;
        }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
        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);
                }
            }
        }