Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic flowchart resizing (Read 1141 times)
alesdario
Junior Member
**
Offline



Posts: 71
Joined: Mar 7th, 2007
flowchart resizing
Mar 23rd, 2007 at 10:46am
Print Post  
Hi stoyo.

I've a problem about FlowChart resizing.

I explane.

I insert a gridLine in flowchart:

Grid grid = flowchart.LaneGrid;

The grid is initially composed of one ColumnsHeader and five RowHeaders. The total height of RowHeaders is greater than flowchart' height, but VScrollBar is not visible. VScrollBar is visible only when i draw a box. i want that the VScrollBar is visible at the begin of the program.
Is possible?
I try to insert a box at the right-bottom corner of flowchart. In this way i obtained my objective, but i'd like to use a flowchart property.

Is my explain clear?

Tanks
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: flowchart resizing
Reply #1 - Mar 23rd, 2007 at 11:12am
Print Post  
You have to modify the document rectangle so that it contains the entire lane grid. The following code should do this:

Code
Select All
Grid grid = flowChart.LaneGrid;

RectangleF columnHeaderBounds = grid.GetColumnHeaderBounds();
RectangleF rowHeaderBounds = grid.GetRowHeaderBounds();
RectangleF gridBounds = RectangleF.Union(columnHeaderBounds, RowHeaderBounds);

flowChart.DocExtents = new RectangleF(
    0,
    0,
    grid.LeftMargin + gridBounds.Width,
    grid.TopMargin + gridBounds.Height); 


Regards,
Meppy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint