GoDiagram Web Reference
FillRectangleGradient(Color,Color) Method

the Color drawn inside the edges of the rectangular bounds
the Color filling the center of the shape
Set the Brush to be a gradient occupying this shape's Bounds, with the start color along the four edges of the rectangle, and with the center color at the center.
Syntax
'Declaration
 
Public Overloads Sub FillRectangleGradient( _
   ByVal start As Color, _
   ByVal center As Color _
) 
public void FillRectangleGradient( 
   Color start,
   Color center
)

Parameters

start
the Color drawn inside the edges of the rectangular bounds
center
the Color filling the center of the shape
Remarks
The Brush is a PathGradientBrush using the rectangular bounds of this shape, clipped by the actual shape. Hence you may not see the start color very much, except where the shape is close to the bounds. This use of a PathGradientBrush does not suffer from the effects of GDI+ filling concave or multi-figure shapes. You can set the BrushPoint property to change where the center color is centered; the default is new PointF(0.5f, 0.5f), the middle of the shape. You can set the BrushFocusScales property to change the size of the center color area; the default is new SizeF(0, 0).
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoShape Class
GoShape Members
Overload List
Brush Property

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback