Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Style of LaneGrid (Read 2044 times)
Amosius
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 75
Joined: Sep 2nd, 2010
Style of LaneGrid
Jul 20th, 2011 at 4:01pm
Print Post  
Hello,

I have a Gridlane with a Columnheader and a couple of cells as Subheaders. I want to create a Gridlane with dotted lines.

I can set the dashstyle, but my cells on a corner get an smaller dotted line than cell-lines that are adjecent to another cell. This means that opacity or thickness or something makes them stronger / bigger. When I print the diagram everything seems normal. It is only on my diagram and only when i zoom out.

Now i have the following code:

Code
Select All
MindFusion.Diagramming.Wpf.Lanes.Style style = new MindFusion.Diagramming.Wpf.Lanes.Style();
                    style.LeftBorderPen.DashStyle = DashStyles.Dot;
                    style.RightBorderPen.DashStyle = DashStyles.Dot;
                    style.BottomBorderPen.DashStyle = DashStyles.Dot;
                    style.TopBorderPen.DashStyle = DashStyles.Dot;

                    for (int column = 0; column < diagram.LaneGrid.ColumnCount; column++)
                    {
                        for (int row = 0; row < diagram.LaneGrid.RowCount; row++)
                        {
                            pProcess.DiagramProcess.LaneGrid[column, row].Style = style;
                        }
                    } 



So I tried to set thickness of every border of the cell. When I set one thickness = 0, then every border of the cell is invisible:
Code
Select All
style.RightBorderPen.Thickness = 0; 



So I am a little bit stucked Smiley

Thx for your help.
Amosius
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Style of LaneGrid
Reply #1 - Jul 21st, 2011 at 8:54am
Print Post  
All border sides share the same Pen initially. Therefore, in order to hide top and left sides only, assign null values to the appropriate properties in the style instead of modifying their transparency:

Code
Select All
style.LeftBorderPen = null;
style.TopBorderPen = null; 


Let me know if this helps.

Regards,
Meppy
  
Back to top
 
IP Logged
 
Amosius
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 75
Joined: Sep 2nd, 2010
Re: Style of LaneGrid
Reply #2 - Jul 21st, 2011 at 3:05pm
Print Post  
This helped me, thx very much Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint