System.Drawing.Region.GetBounds C# (CSharp) Метод

GetBounds() приватный Метод

private GetBounds ( ) : RectangleF
Результат RectangleF
        internal RectangleF GetBounds()
        {
            return regionBounds;
        }

Same methods

Region::GetBounds ( Graphics g ) : RectangleF

Usage Example

Пример #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