The idea of user functions is to provide a value or modify a property for already existing item during the processing stage. Any new report item must be created before the report is processed - we usually advise to do that right after InitializeComponent()
method in report constructor.
If you need to create a new shape item, this can be achieved the following way:
MyCustomShape : Drawing.Shapes.ShapeBase
PointF seriesofPoints =
The shape item can be instantiated and added to the report like this:
var report =
var detailsSection = report.Items.OfType<DetailSection>().FirstOrDefault();
var shape =
The code above will produce a report that has the desired shape in its details section. Currently there is no way to add a design-time support for custom ShapeType
implementations, but using code, as demonstrated above, allows to add virtually any kind of shape to a report.
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items