示例#1
0
 protected virtual bool ComputeBoundsSkip(DiagramShape child)
 {
     if (child == this.Handle)
     {
         return true;
     }
     if (child == this.Label)
     {
         if ((base.InternalFlags & 0x1000000) == 0)
         {
             return !child.CanView();
         }
         return true;
     }
     if (child == this.Port)
     {
         return true;
     }
     if (child == this.CollapsedObject)
     {
         return !child.CanView();
     }
     IDiagramLine link1 = child as IDiagramLine;
     if (link1 != null)
     {
         if (!child.CanView())
         {
             return true;
         }
         if ((this.Port != null) && ((link1.FromPort == this.Port) || (link1.ToPort == this.Port)))
         {
             return true;
         }
     }
     return false;
 }