Profile Picture

StyleSheet

Posted By Hans Henrik Friis Pedersen... 9 Years Ago
Author
Message
Hans Henrik Friis Pedersen...
Question Posted 9 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 8 Years Ago
Posts: 28, Visits: 136
Hi,

I'm using the NDR.NameConnectorsStyleSheet

How do I make a new stylesheet and add properties to it? for instance, line width, line color, endarrowheadstyles etc?

Hans Henrik Friis Pedersen...
Posted 9 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 8 Years Ago
Posts: 28, Visits: 136

Hi,

I found a solution my self:

NStyleSheet stylesheet1 = new NStyleSheet("Test");
stylesheet1.Style.StrokeStyle = new NStrokeStyle(0.1f, Color.Black);
stylesheet1.Style.EndArrowheadStyle =
new NArrowheadStyle(ArrowheadShape.Arrow,
"",
new NSizeL(2, 2),
new NColorFillStyle(Color.Black),
new NStrokeStyle(1, Color.Black));

nDrawingDocument1.StyleSheets.AddChild(stylesheet1);

The stylesheet "Test" may then be found as:

Connector1.StyleSheetName = "Test";





Similar Topics


Reading This Topic