Back to Devexpress

ShapePolygon.NumberOfSides Property

corelibraries-devexpress-dot-xtraprinting-dot-shape-dot-shapepolygon.md

latest2.4 KB
Original Source

ShapePolygon.NumberOfSides Property

Gets or sets the number of polygon sides.

Namespace : DevExpress.XtraPrinting.Shape

Assembly : DevExpress.Printing.v25.2.Core.dll

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
[DefaultValue(3)]
public int NumberOfSides { get; set; }
vb
<DefaultValue(3)>
Public Property NumberOfSides As Integer

Property Value

TypeDefaultDescription
Int323

An integer value which represents the number of sides in a polygon.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the NumberOfSides property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

reporting-winforms-insert-a-shape-control/CS/Form1.cs#L106

csharp
// Adjust the Polygon shape's specific properties.
((ShapePolygon)shape.Shape).NumberOfSides = 7;
((ShapePolygon)shape.Shape).Fillet = 5;

reporting-winforms-insert-a-shape-control/VB/Form1.vb#L91

vb
' Adjust the Polygon shape's specific properties.
CType(shape.Shape, ShapePolygon).NumberOfSides = 7
CType(shape.Shape, ShapePolygon).Fillet = 5

See Also

ShapePolygon Class

ShapePolygon Members

DevExpress.XtraPrinting.Shape Namespace