System.Drawing.RectangleF.IntersectsWith C# (CSharp) Méthode

IntersectsWith() public méthode

public IntersectsWith ( System rect ) : bool
rect System
Résultat bool
        public bool IntersectsWith(System.Drawing.RectangleF rect) { throw null; }
        public void Offset(System.Drawing.PointF pos) { }

Same methods

RectangleF::IntersectsWith ( RectangleF rect ) : bool

Usage Example

Exemple #1
0
 public bool IsVisible(RectangleF rect)
 {
     if (rects.Length > 0 && extent.IntersectsWith(rect))
     {
         for (int i = 0; i < rects.Length; i++)
         {
             RectangleF currentRect = rects[i];
             // Not far enough down yet
             if (currentRect.Bottom <= rect.Top)
             {
                 continue;
             }
             // Too far down
             if (currentRect.Top >= rect.Bottom)
             {
                 break;
             }
             // Not far over enough yet
             if (currentRect.Right <= rect.Left)
             {
                 continue;
             }
             if (currentRect.Left >= rect.Right)
             {
                 continue;
             }
             return(true);
         }
     }
     return(false);
 }
All Usage Examples Of System.Drawing.RectangleF::IntersectsWith