Hi Ashley,
Indeed the code included a shortcut function that is not present in the current release. This must work with 2019.1:
NRibbon ribbon = nDrawingViewWithRibbonControl1.Widget.GetFirstDescendant<NRibbon>();
ribbon.Visibility = ENVisibility.Collapsed;
We hope this helps - let us know if you meet any problems.
Best Regards,
Nevron Support Team