System.Drawing.Graphics.IsVisible C# (CSharp) Method

IsVisible() public method

public IsVisible ( Point point ) : bool
point Point
return bool
        public bool IsVisible(Point point)
        {
            return clipRegion.IsVisible (point);
        }

Same methods

Graphics::IsVisible ( PointF point ) : bool
Graphics::IsVisible ( Rectangle rect ) : bool
Graphics::IsVisible ( RectangleF rect ) : bool
Graphics::IsVisible ( float x, float y ) : bool
Graphics::IsVisible ( float x, float y, float width, float height ) : bool
Graphics::IsVisible ( int x, int y ) : bool
Graphics::IsVisible ( int x, int y, int width, int height ) : bool

Usage Example

 private void PaintTopLeftHeaderCell(Graphics g)
 {
     if (g.IsVisible(this.layout.TopLeftHeader))
     {
         DataGridViewCell cell = this.TopLeftHeaderCell;
         DataGridViewCellStyle inheritedCellStyle = new DataGridViewCellStyle();
         BuildInheritedColumnHeaderCellStyle(inheritedCellStyle, cell);
         Rectangle cellBounds = this.layout.TopLeftHeader;
         cellBounds.Width = this.rowHeadersWidth;
         cellBounds.Height = this.columnHeadersHeight;
         // [....]: Should paintSelectionBackground be dev-settable?
         cell.PaintWork(g, 
                        this.layout.TopLeftHeader, 
                        cellBounds, 
                        -1, 
                        cell.State, 
                        inheritedCellStyle, 
                        this.AdjustedTopLeftHeaderBorderStyle,
                        DataGridViewPaintParts.Background | DataGridViewPaintParts.Border | DataGridViewPaintParts.ContentBackground | DataGridViewPaintParts.ContentForeground | DataGridViewPaintParts.ErrorIcon | DataGridViewPaintParts.SelectionBackground);
     }
 }
All Usage Examples Of System.Drawing.Graphics::IsVisible