• Login

DataSoft Corporation

Shape Control

This document describes how to use the Shape control for drawing various shapes in a report.

To draw a shape in a report, drag the Shape control from the  Toolbox tab and drop it onto the report.

The Shape class supports a variety of different shapes. To select a shape, set the Shape property

Expanded Arrow

A shape of the Arrow type looks as shown in the image below.

The following properties should be set to specify a particular arrow of the Arrow type:

  • ShapeArrow.ArrowHeight. This property is used to specify the relative height of the arrow (in percent). The returned value should be from 0 to 100.
  • ShapeArrow.ArrowWidth. This property is used to specify the relative width of the arrow (in percent). The returned value should be from 0 to 100.
  • FilletShapeBase.Fillet. This property is used to specify the relative roundness of the arrow (in percent). The returned value should be from 0 to 100.


Expanded Brace

A shape of the Brace type looks as shown in the image below.

The following property should be set to specify a particular Brace:

  • ShapeBracket.TipLength. This property is used to specify the length of a brace's tip.
  • ShapeBrace.TailLength. This property is used to specify the length of a brace's tail.
  • FilletShapeBase.Fillet. This property is used to specify the relative roundness of the brace (in percent). The returned value should be from 0 to 100.


Expanded Bracket

A shape of the Bracket type looks as shown in the image below.

The following property should be set to specify a particular Bracket:

  • ShapeBracket.TipLength. This property is used to specify the length of a bracket's tip.


Expanded Cross

A shape of the Cross type looks as shown in the image below.

The following properties should be set to specify a particular Cross:

  • ShapeCross.HorizontalLineWidth. This property is used to specify the horizontal line width of a cross (in percent). The returned value should be from 0 to 100.
  • ShapeCross.VerticalLineWidth. This property is used to specify the vertical line width of a cross (in percent). The returned value should be from 0 to 100.
  • FilletShapeBase.Fillet. This property is used to specify the relative roundness of the cross (in percent). The returned value should be from 0 to 100.


Expanded Ellipse

A shape of the Ellipse type looks as shown in the image below.

This example demonstrates how to create a Shape Ellipse type control, and set its basic properties.


Expanded Line

A shape of the Line type looks as shown in the image below.

This example demonstrates how to create a Shape Line type control, and set its basic properties.


Expanded Polygon

A shape of the Polygon type looks as shown in the image below.

The following properties should be set to specify a particular Polygon:

  • ShapePolygon.NumberOfSides. This property is used to specify the number of sides for the polygon.
  • FilletShapeBase.Fillet. This property is used to specify the relative roundness of the polygon (in percent). The returned value should be from 0 to 100.


Expanded Rectangle

A shape of the Rectangle type looks as shown in the image below.

The following property should be set to specify a particular of the Rectangle:

  • FilletShapeBase.Fillet. This property is used to specify the relative roundness of the rectangle (in percent). The returned value should be from 0 to 100.


Expanded Star

A shape of the Star type looks as shown in the image below.

The following properties should be set to specify a particular Star:

  • ShapeStar.Concavity. This property is used to specify the concavity level (in percent) between two neighboring start points. The returned value should be from 0 to 100.
  • ShapeStar.StarPointCount. This property is used to specify the number of points in the star.
  • FilletShapeBase.Fillet. This property is used to specify the relative roundness of the star points (in percent). The returned value should be from 0 to 100.

 

Sunday, 13 January 2019 Posted in Report Controls
 DataSoft Store  Knowledgebase  Contact Us
 Sitemap  Privacy Policy
    Customer Service


Copyright © 2019 DataSoft Corporation All rights reserved.