Profile Picture

Diagram Drawing Pane with Margins like in Visio (no grid lines)

Posted By Dieter Schulten 12 Years Ago

Diagram Drawing Pane with Margins like in Visio (no grid lines)

Author
Message
Dieter Schulten
Posted 12 Years Ago
View Quick Profile
Junior Member

Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)

Group: Forum Members
Last Active: 9 Years Ago
Posts: 10, Visits: 2
Perfect

Thanx, Dieter

Nevron Support
Posted 12 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 Dieter,

Thank you for the clarification. In order to achieve this effect you should modify the drawing document's frame style. Here's some sample code:

NStandardFrameStyle frameStyle = new NStandardFrameStyle();

frameStyle.InnerBorderColor = view.Grid.MajorLinesStrokeStyle.Color;

frameStyle.InnerBorderWidth = new NLength(1);

frameStyle.OuterBorderColor = ((NColorFillStyle)document.BackgroundStyle.FillStyle).Color;

frameStyle.OuterBorderWidth = new NLength(20);

document.BackgroundStyle.FrameStyle = frameStyle;



Best Regards,
Nevron Support Team



Dieter Schulten
Posted 12 Years Ago
View Quick Profile
Junior Member

Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)

Group: Forum Members
Last Active: 9 Years Ago
Posts: 10, Visits: 2
Hi,

yes i can hide the grid, but i don't want to hide the grid.
I just don't wwant gridlines aroud the drawing pane like in visio.
I did add a screenshot to this post.

Kind Regards and thanx for your help, Dieter


Attachments
Screenshot.png (227 views, 12.00 KB)
Nevron Support
Posted 12 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 Dieter,

You can easily hide the grid using the following code:

drawingView.Grid.Visible = false;


Best Regards,
Nevron Support Team



Dieter Schulten
Posted 12 Years Ago
View Quick Profile
Junior Member

Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)

Group: Forum Members
Last Active: 9 Years Ago
Posts: 10, Visits: 2
Hello, is there a way to have the drawing pane for the diagram
the margins (borders) look like in Visio. What i mean is a
white Frame arround the drawing pane without the grid.

Kind Regards, Dieter



Similar Topics


Reading This Topic