Nevron Forum

How To Hide Ruler Programmatically

https://www.nevron.com/Forum/Topic13001.aspx

By Ashley Davy - Saturday, February 29, 2020

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 - Wednesday, March 4, 2020

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 - Thursday, March 5, 2020

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;