How To Hide Ruler Programmatically


https://www.nevron.com/Forum/Topic13001.aspx
Print Topic | Close Window

By Ashley Davy - 4 Years Ago
I am using the NDrawingViewControl.  This is the one without the ribbon or command bar.  How do I hide the following:  Vertical Ruler, Horizontal Ruler, and Grid?

Thanks,
Ashley
By Ashley Davy - 4 Years Ago
This is what I am doing to hide the rulers on the NDrawingViewControl but it is not working.

DrawSym.HRuler.Visibility = Nevron.Nov.UI.ENVisibility.Hidden
DrawSym.VRuler.Visibility = Nevron.Nov.UI.ENVisibility.Hidden
By Nevron Support - 4 Years Ago
You can hide the grid and the rulers on a per drawing basis like this:

drawingViewControl.Widget.Drawing.ScreenVisibility.ShowGrid = false;    drawingViewControl.Widget.Drawing.ScreenVisibility.ShowRulers = false;