/// <summary> /// Creates a FindReplaceForm that will be assigned to a specific Owner control. /// </summary> /// <param name="Owner">The SyntaxBox that will use the FindReplaceForm</param> public FindReplaceForm(EditViewControl Owner) { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // mOwner = Owner; }
/// <summary> /// Creates a GotoLineForm that will be assigned to a specific Owner control. /// </summary> /// <param name="Owner">The SyntaxBox that will use the GotoLineForm</param> /// <param name="RowCount">The number of lines in the owner control</param> public GotoLineForm(EditViewControl Owner, int RowCount) { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // lblLines.Text = "Line number (1-" + RowCount.ToString(CultureInfo.InvariantCulture) + "):"; mOwner = Owner; }
/// <summary> /// Selection Constructor. /// </summary> /// <param name="control">Control that will use this selection</param> public Selection(EditViewControl control) { Control = control; Bounds = new TextRange(); }
/// <summary> /// Caret constructor /// </summary> /// <param name="control">The control that will use the caret</param> public Caret(EditViewControl control) { Position = new TextPoint(0, 0); Control = control; }