Hi,
I am trying to get the code to work that defines a custome shape.
I have copied this code into my .NET webform
private void example_Click(object sender, System.EventArgs e)
{
// define a custom shape
// this is the same as: fc.DefaultShape = ShapeTemplate.FromId(“Tape”);
fc.DefaultShape = new ShapeTemplate(
new ElementTemplate[] {
new LineTemplate( 50, 100, 85, 100),
new LineTemplate( 85, 100, 85, 90),
new LineTemplate( 85, 90, 70, 90),
new BezierTemplate( 70, 90, 85, 90, 100, 75, 100, 50),
new BezierTemplate(100, 50, 100, 25, 75, 0, 50, 0),
new BezierTemplate( 50, 0, 25, 0, 0, 25, 0, 50),
new BezierTemplate( 0, 50, 0, 75, 25, 100, 50, 100) },
FillMode.Winding);
}
But I get an error message that says "The name 'FillMode' does not exist in the current context"
Can someone help me here please
Thanks
Geoff
|