by Syncfusion - Product Type: Component / ASP.NET WebForms / ASP.NET AJAX (ATLAS) / .NET WinForms / .NET WPF / Silverlight / 100% Managed Code / Source Code / JavaScript / AJAX
I need some other functionalty other then layout grid which name should be guideline. For example, I should be able to drag e horizontal line from the horizontal ruler to the view and this operation will draw a single line (not evenly spaced many lines) to the view. I should be able to place this line to any location on the view but having the ability to move only horizontally (cos i dragged it from horizontal ruler). Also this line should not be printed on the printer and should not be a part of the nodes collection. Any other node on the view may be snapped to this line. By the way most of the diagramming tools, apps and cad apps have this guide line functionality. You should know it.
Thanks in advance
Reply
Is there a GuideLine tool in diagram view to place a horizontal or vertical line for making the shapes snap to?
Thanks in advance
Reply
RE: Syncfusion Essential Diagram support@componentsource.com 22-Nov-2010 17:24:37
Hello there,
Thank you for taking the time to submit your question on this Syncfusion Essential Diagram Forum here at ComponentSource.
I run your query with the right people at SyncFusion and they sent the below information for you:
===
This can be achieved thusly:
Diagram Grid
Diagram Grid is drawn with evenly spaced points that provides a visual guidance to the user.
Behavior
Draws a matrix of evenly spaced points in the view, and provides snap to the grid calculations.
Class Reference
It is a property of Diagram.View class and its return type is Syncfusion.Windows.Forms.Diagram.LayoutGrid.
[C#]
diagram1.View.Grid.GridStyle = GridStyle.Line;
diagram1.View.Grid.DashStyle=System.Drawing.Drawing2D.DashStyle.Dot;
diagram1.View.Grid.Color = Color.LightGray
diagram1.View.Grid.VerticalSpacing = 15;
diagram1.View.Grid.HorizontalSpacing = 15;
diagram1.View.Grid.Visible = false;
diagram1.View.Grid.SnapToGrid = true;
===
I hope it helps
Regards
Enrique Perez
ComponentSource Support
Reply
Publisher
Primary Category
Related Products
ComponentSource offers a unique global service, used by over 1,000,000 software developers worldwide.