예제 #1
0
        public VisioLayoutOptions()
        {
            var flowchart = new VisioAutomation.Models.LayoutStyles.FlowchartLayoutStyle();

            flowchart.LayoutDirection = LayoutStyles.LayoutDirection.TopToBottom;
            this.VisioLayoutStyle     = flowchart;
        }
예제 #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);
            }
        }
예제 #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);
                }
            }
        }