namespace Terminal.Gui; /// A replacement suggestion made by public class Suggestion { /// Creates a new instance of the class. /// /// /// User visible title for the suggestion or null if the same as . public Suggestion (int remove, string replacement, string title = null) { Remove = remove; Replacement = replacement; Title = title ?? replacement; } /// /// The number of characters to remove at the current cursor position before adding the /// public int Remove { get; } /// The replacement text that will be added public string Replacement { get; } /// /// The user visible description for the . Typically this would be the same as /// but may vary in advanced use cases (e.g. Title= "ctor", Replacement = "MyClass()\n{\n}") /// public string Title { get; } }