We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Symbol_Backgroundcolor

Hi i draw a Symbol with Polyline from the Drawing Tools for my Symbol Palettes, and would like to change the Backgroundcolor but in the PropertyGrid the FillStyle Proberty under Appearance is not there.
could you tell me how to do this.

Best Regards
Hayssam

3 Replies

AA Amsath Ali M Syncfusion Team March 6, 2013 10:35 AM UTC

Hi Hayssam,

 

Thanks for your interest in Syncfusion products.

 

Please note that the node’s FillStyle properties (changing appearance of nodes) are available only for those nodes which are derived from the “FilledPath”. Since the connectors, lines, curves, etc. are drawn basically using lines, and does not have any closed graphics path, this is the reason why the lines won’t have the Fillstyle properties. However, you can change the appearance of lines using its LineStyle properties.

 

Please let us know if you have any queries.

 

Regards,

Amsath Ali .M



HH Hayssam Hassan March 11, 2013 05:23 PM UTC

Hi Amsath Ali .M,

if i draw the symbol with Rectangle and Polygon (See Model 1) and adedd them together. is there any
possibility to make the Line between Rectangle and Polygon transparent. i want to have the Symbol like the one in Model 2


SymbolBackgrond_bae0784c.rar


AA Amsath Ali M Syncfusion Team March 12, 2013 07:20 AM UTC

Hi Hayssam,

 

Thanks for your update.

 

Currently we have support to change the LineStyle of the entire node [Line drawn around the node] only. However you can achieve your requirement by creating the polygon node and the same can be demonstrated in the below sample.

 

Here is the code:

[C#]

PointF[] pts = new PointF[]{new PointF(100,100), new PointF(240,100) , new PointF(280,140), new PointF(240,180), new PointF(100,180) };

                Polygon poly = new Polygon(pts);

                DiagramWebControl1.Model.AppendChild(poly);

 

Here is the sample:

F107637.zip

Please let us know if you have any queries.

 

Regards,

Amsath Ali. M


Loader.
Up arrow icon