| MultiRow Windows Forms > Developer's Guide > Using MultiRow > Cell Types > ShapeCell > Setting Shapes (ShapeCell) |
You can use the ShapeCell.Renderer property to set shapes in a shape cell. This section describes how to set shapes.

The following example creates a shape cell.
Imports GrapeCity.Win.MultiRow
Dim pentagonShapeRenderer1 = New PentagonShapeRenderer()
pentagonShapeRenderer1.ArrowLength = 30
pentagonShapeRenderer1.Direction = ShapeDirection.Top
pentagonShapeRenderer1.LineWidth = 3
Dim shapeCell1 = New ShapeCell()
shapeCell1.Name = "shapeCell1"
shapeCell1.Renderer = pentagonShapeRenderer1
GcMultiRow1.Template = Template.CreateGridTemplate(New Cell() {shapeCell1})
GcMultiRow1.RowCount = 10
|
using GrapeCity.Win.MultiRow;
PentagonShapeRenderer pentagonShapeRenderer1 = new PentagonShapeRenderer();
pentagonShapeRenderer1.ArrowLength = 30;
pentagonShapeRenderer1.Direction = ShapeDirection.Top;
pentagonShapeRenderer1.LineWidth = 3;
ShapeCell shapeCell1 = new ShapeCell();
shapeCell1.Name = "shapeCell1";
shapeCell1.Renderer = pentagonShapeRenderer1;
gcMultiRow1.Template = Template.CreateGridTemplate(new Cell[] { shapeCell1 });
gcMultiRow1.RowCount = 10;
|