Report Generator FastReport .Net User Guide: Use of Polyline and Polygon Objects

FastReport .Net is a full-featured Windows Forms, ASP.NET and MVC report analysis solution. Using FastReport .NET can create .NET reports independent of applications. At the same time, FastReport .Net supports 14 languages ​​such as Chinese and English. You can make your products truly international.

In the previous article of the Fastreport User Manual, we shared the concept and properties of the "Shape" object. This article mainly shares the usage and editing modes of polyline and polygon objects, hoping to help you.

Polyline and polygon objects ( "Polyline" and "polygon" objects )

These objects are used to display various shapes, such as polygons. They belong to the same class as Shape and Line objects. To place polygonal objects, open the

and select one of the polygons. You can place prefabricated pentagons, hexagons, heptagons or octagons. Alternatively, you can select a polygon to draw the shape yourself. Example of what a polygon looks like:

The gray lines in the image help you understand how the object will look after adding new points.

After placing the first point, you can add additional points. When you're done drawing your polygons, press Escape or toggle edit mode. The edit mode panel for polyline and polygon objects is located on the Home tab.

Polyline and polygon editing modes:

button model describe

add a bit This mode is turned on immediately after adding polygons. To add a point, select this mode and select a point of the object. After that, hover the mouse over the desired point location and press the left mouse button. The point will be added next to the point you selected.

move and zoom In this mode, you can move the entire object, or you can stretch it.

delete point To delete a point from a polygon or polyline, select this mode and click on the desired point. You can also select it in other modes and press the Delete key.

mouse cursor This mode allows you to view and move all points of previously added objects.

curve anchor In this mode you can add a point of the curve to the line adjacent to the selected point. This line will be a Bezier curve and the points added will act as anchor points.

This is what a dashed line with set curvature points (blue) looks like. The red line shows the state of the line before it was converted to a curve.

Both objects can adjust their bounds, and polygon objects support the same fill modes as the rest.

Guess you like

Origin blog.csdn.net/m0_67129275/article/details/131282413