Represents a shape in a report.
Remarks
A shape control embeds any simple graphics into a report. The shape's type is determined by the Shape property, which returns an object containing settings for one of the shape types available in MxReport component.
In addition, the Shape control features the Angle property to specify the angle by which the shape's image is rotated; the LineWidth property - to specify the width of the line which is used to draw the shape image; the FillColor property - to specify the colour that fills the shape of the image; and the Stretch property - to specify whether or not to stretch a shape.
Shape, determined in property Shape, can be used to emphasize a certain data or just to enliven a report. Many different shapes can be used:
- Rectangle,
- Ellipse,
- Arrow,
- Triangle,
- Star,
- Cross,
- Etc.
Example (MxSpace)
To see the Shape on a report component, open MxSpace solution project in Visual Studio. In Solution Explorer expand node Reports and double click StockReport.cs. Shape control is displayed in the top right corner in GroupHeader1 band.
To add Shape to a report
- In Solution Explorer open the desired MxReport component (StockReport) by double clicking it.
- Open Toolbox window and expand DX:Reports.vX.X section.
- Select XRPictureBox control and drag it to the desired band (GroupHeader1).
- Open Properties window.
- In property Shape select the desired type of the shape (Star).
To learn more about the control, how to implement it and use it see Developer Express documentation.