System.Drawing.Region.GetBounds C# (CSharp) Method

GetBounds() private method

private GetBounds ( ) : RectangleF
return RectangleF
        internal RectangleF GetBounds()
        {
            return regionBounds;
        }

Same methods

Region::GetBounds ( Graphics g ) : RectangleF

Usage Example

Beispiel #1
0
        public override void DrawShapeOnGraphics(GraphicsPath shapeAsGraphicsPath, Graphics g)
        {
            styleToDecorate.DrawShapeOnGraphics(shapeAsGraphicsPath, g);

              Region shapeAsRegion = new Region(shapeAsGraphicsPath);
              RectangleF rr = shapeAsRegion.GetBounds(g);
              CreateGradient(rr);
              g.FillRegion(styleToDecorate.fillBrush_, shapeAsRegion);
        }
All Usage Examples Of System.Drawing.Region::GetBounds