corelibraries-devexpress-dot-xtraprinting-dot-shape-dot-shapepolygon.md
Gets or sets the number of polygon sides.
Namespace : DevExpress.XtraPrinting.Shape
Assembly : DevExpress.Printing.v25.2.Core.dll
NuGet Package : DevExpress.Printing.Core
[DefaultValue(3)]
public int NumberOfSides { get; set; }
<DefaultValue(3)>
Public Property NumberOfSides As Integer
| Type | Default | Description |
|---|---|---|
| Int32 | 3 |
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
// 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
' Adjust the Polygon shape's specific properties.
CType(shape.Shape, ShapePolygon).NumberOfSides = 7
CType(shape.Shape, ShapePolygon).Fillet = 5
See Also