public CompactTreeLayout() :
     base()
 {
     this.LayoutStyle = LayoutStyle.CompactTree;
     this.ConnectorStyle = ConnectorStyle.OrganizationChart;
     this.Direction = CompactTreeDirection.DownThenRight;
 }
示例#2
0
 public CompactTreeLayout() :
     base()
 {
     this.LayoutStyle    = LayoutStyle.CompactTree;
     this.ConnectorStyle = ConnectorStyle.OrganizationChart;
     this.Direction      = CompactTreeDirection.DownThenRight;
 }
 private static IVisio.VisCellVals GetPlaceStyle(CompactTreeDirection dir)
 {
     if (dir == CompactTreeDirection.DownThenRight)
     {
         return IVisio.VisCellVals.visPLOPlaceCompactDownRight;
     }
     else if (dir == CompactTreeDirection.RightThenDown)
     {
         return IVisio.VisCellVals.visPLOPlaceCompactRightDown;
     }
     else if (dir == CompactTreeDirection.RightThenUp)
     {
         return IVisio.VisCellVals.visPLOPlaceCompactRightUp;
     }
     else if (dir == CompactTreeDirection.UpThenRigtht)
     {
         return IVisio.VisCellVals.visPLOPlaceCompactUpRight;
     }
     else if (dir == CompactTreeDirection.UpThenLeft)
     {
         return IVisio.VisCellVals.visPLOPlaceCompactUpLeft;
     }
     else if (dir == CompactTreeDirection.LeftThenUp)
     {
         return IVisio.VisCellVals.visPLOPlaceCompactLeftUp;
     }
     else if (dir == CompactTreeDirection.LeftThenDown)
     {
         return IVisio.VisCellVals.visPLOPlaceCompactLeftDown;
     }
     else if (dir == CompactTreeDirection.DownThenLeft)
     {
         return IVisio.VisCellVals.visPLOPlaceCompactDownLeft;
     }
     else
     {
         string msg = "Unsupported direction";
         throw new AutomationException(msg);
     }
 }
 private static IVisio.VisCellVals GetPlaceStyle(CompactTreeDirection dir)
 {
     if (dir == CompactTreeDirection.DownThenRight)
     {
         return(IVisio.VisCellVals.visPLOPlaceCompactDownRight);
     }
     else if (dir == CompactTreeDirection.RightThenDown)
     {
         return(IVisio.VisCellVals.visPLOPlaceCompactRightDown);
     }
     else if (dir == CompactTreeDirection.RightThenUp)
     {
         return(IVisio.VisCellVals.visPLOPlaceCompactRightUp);
     }
     else if (dir == CompactTreeDirection.UpThenRigtht)
     {
         return(IVisio.VisCellVals.visPLOPlaceCompactUpRight);
     }
     else if (dir == CompactTreeDirection.UpThenLeft)
     {
         return(IVisio.VisCellVals.visPLOPlaceCompactUpLeft);
     }
     else if (dir == CompactTreeDirection.LeftThenUp)
     {
         return(IVisio.VisCellVals.visPLOPlaceCompactLeftUp);
     }
     else if (dir == CompactTreeDirection.LeftThenDown)
     {
         return(IVisio.VisCellVals.visPLOPlaceCompactLeftDown);
     }
     else if (dir == CompactTreeDirection.DownThenLeft)
     {
         return(IVisio.VisCellVals.visPLOPlaceCompactDownLeft);
     }
     else
     {
         string msg = "Unsupported direction";
         throw new AutomationException(msg);
     }
 }
示例#5
0
 private static IVisio.VisCellVals GetPlaceStyle(CompactTreeDirection dir)
 {
     if (dir == CompactTreeDirection.DownThenRight)
     {
         return(IVisio.VisCellVals.visPLOPlaceCompactDownRight);
     }
     else if (dir == CompactTreeDirection.RightThenDown)
     {
         return(IVisio.VisCellVals.visPLOPlaceCompactRightDown);
     }
     else if (dir == CompactTreeDirection.RightThenUp)
     {
         return(IVisio.VisCellVals.visPLOPlaceCompactRightUp);
     }
     else if (dir == CompactTreeDirection.UpThenRigtht)
     {
         return(IVisio.VisCellVals.visPLOPlaceCompactUpRight);
     }
     else if (dir == CompactTreeDirection.UpThenLeft)
     {
         return(IVisio.VisCellVals.visPLOPlaceCompactUpLeft);
     }
     else if (dir == CompactTreeDirection.LeftThenUp)
     {
         return(IVisio.VisCellVals.visPLOPlaceCompactLeftUp);
     }
     else if (dir == CompactTreeDirection.LeftThenDown)
     {
         return(IVisio.VisCellVals.visPLOPlaceCompactLeftDown);
     }
     else if (dir == CompactTreeDirection.DownThenLeft)
     {
         return(IVisio.VisCellVals.visPLOPlaceCompactDownLeft);
     }
     else
     {
         throw new System.ArgumentException(nameof(dir));
     }
 }