Help & Support
Contents
Display Legacy Contents

Search:

Home > Report Designer > Report Controls > Report Elements > Shape > Shape Overview

Shape Overview

Home > Report Designer > Report Controls > Report Elements > Shape > Shape Overview

Shape Overview


This document introduces the basics of using shapes in XtraReports, and describes the main properties required to create shapes of different types.

To learn more about every shape type, refer to the corresponding topic in this section.
Also, see the Report Controls document for more information on using report controls.

A shape control in XtraReports is represented by the XRShape class instance. To insert a shape into a report, simply drag an XRShape control item from the DX.11.2: Report Controls Toolbox tab and drop it onto the report.

There are a lot of standard shape types supported by the XRShape class. To specify the shape's type, you should set the XRShape.Shape property to an appropriate descendant of the ShapeBase class. Then, the XRShape.Shape property will return an object that corresponds to a particular shape's type, and contains all the properties required by this type.

  • Then, you can specify properties which are specific to the selected type of a shape. For instance, the ShapeArrow class provides the ShapeArrow.ArrowHeight and ShapeArrow.ArrowWidth properties, customizing the appearance of an arrow shown within the XRShape control.

  • In addition, the XRShape class features the XRShape.Angle property to specify the angle by which the shape's image is rotated, the XRShape.LineWidth property - to specify the width of the line which is used to draw the shape image, the XRShape.FillColor property - to specify the color to fill the shape image, and the XRShape.Stretch property - to specify whether or not to stretch a shape when it's rotated.



See also



Properties
Article ID:
shape_overview
Views: 159
Created By: jimdurkin
Modified By: [Modified By]
Created Date: 3/24/2014 12:31 PM
Last Modified: 3/24/2014 12:31 PM
Actions
Print This Article
Bookmark
Email This Article
Previous Article
Next Article