private void LoadGlobalGuide() { GuideItems.Clear(); if (_document != null) { foreach (IGuide item in _document.GlobalGuides) { switch (item.Orientation) { case Orientation.Horizontal: GuideItems.Add(new HorizontalGuideLine(item as IGuide, GuideType.Global, scale)); break; case Orientation.Vertical: GuideItems.Add(new VerticalGuideLine(item as IGuide, GuideType.Global, scale)); break; } } } }
private void LoadPageGuide() { GuideItems.Clear(); if (_page != null && _pageView != null) { foreach (IGuide item in _pageView.Guides) { switch (item.Orientation) { case Orientation.Horizontal: GuideItems.Add(new HorizontalGuideLine(item as IGuide, GuideType.Local, scale)); break; case Orientation.Vertical: GuideItems.Add(new VerticalGuideLine(item as IGuide, GuideType.Local, scale)); break; } } } }