/// <summary> /// Loads the contents of the file into the TextView. /// </summary> /// <returns><c>true</c>, if file was loaded, <c>false</c> otherwise.</returns> /// <param name="path">Path to the file to load.</param> public bool LoadFile(string path) { if (path == null) { throw new ArgumentNullException(nameof(path)); } ResetPosition(); var res = model.LoadFile(path); SetNeedsDisplay(); return(res); }