ComponentOne FlexGrid for WPF and Silverlight
CreatePolygon Method (Util)

C1.Util Namespace > Util Class : CreatePolygon Method
System.Windows.Media.Brush used to fill the polygon.
Array with X and Y coordinates of the points that define the polygon.
Creates a polygon (used to create sort and tree glyphs).
Syntax
'Declaration
 
Public Shared Function CreatePolygon( _
   ByVal brush As System.Windows.Media.Brush, _
   ByVal ParamArray values() As System.Double _
) As System.Windows.Shapes.Polygon
public static System.Windows.Shapes.Polygon CreatePolygon( 
   System.Windows.Media.Brush brush,
   params System.double[] values
)

Parameters

brush
System.Windows.Media.Brush used to fill the polygon.
values
Array with X and Y coordinates of the points that define the polygon.

Return Value

A polygon with the specified background and geometry.
See Also

Reference

Util Class
Util Members