ChartDirector 7.1 (.NET Edition)

DrawArea.rect


Usage

[C#]public void rect(int x1, int y1, int x2, int y2, int edgeColor, int fillColor [, int raisedEffect ]);
[VB]Public Sub rect(x1 As Integer, y1 As Integer, x2 As Integer, y2 As Integer, edgeColor As Integer, fillColor As Integer [, raisedEffect As Integer ])

Description

Draws a rectangle.

Arguments

ArgumentDefaultDescription
x1(Mandatory)The x coordinate of one corner of the rectangle.
y1(Mandatory)The y coordinate of one corner of the rectangle.
x2(Mandatory)The x coordinate of the opposite corner of the rectangle.
y2(Mandatory)The y coordinate of the opposite corner of the rectangle.
edgeColor(Mandatory)The border color. To disable border, set the edgeColor the same as the fillColor.
fillColor(Mandatory)The fill color. To disable filling, set the fillColor to Transparent.
raisedEffect0The 3D border width. For positive values, the border will appear raised. For negative values, the border will appear depressed. A zero value means the border will appear flat. This argument can also be used to specify Chart.glassEffect, Chart.softLighting, Chart.cylinderEffect or Chart.flatBorder effects.

Return Value

None