Profile Picture

Custom ArrowheadShape

Posted By Dennis Müller 14 Years Ago
Author
Message
Dennis Müller
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 4, Visits: 1
Hi,

I am trying to draw a vertical line with horizontal bars at the end. It seems that there is no predefined shape for that and I did not find hints how to add a custom shape for this purpose. I know how to set an NArrowheadStyle:

new NArrowheadStyle(ArrowheadShape.Custom, customShapeName, size, fillstyle, stroke);

And I guess that I have to add a Shape with a name somewhere and place the name in "customShapeName". But I have no Idea how to do this. Can anybody point me to the right documents or post some short codeparts?

Regards,

Dennis

Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi Dennis,

The following is a simple example of how to apply custom arrowhead style:

 

NRectangleShape rect = new NRectangleShape(0, 0, 5, 5);

rect.Name = "Rect";

document.ArrowheadShapeStencil.AddChild(rect);

NStyle.SetStartArrowheadStyle(line, new NArrowheadStyle(ArrowheadShape.Custom, "Rect",

      new NSizeL(5, 5), new NColorFillStyle(KnownArgbColorValue.Red), null));

 



Best Regards,
Nevron Support Team



Dennis Müller
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 4, Visits: 1
Thanks.

This piece of code was exactly the information I needed.

Regards,

Dennis



Similar Topics


Reading This Topic