1234567891011121314151617181920212223242526272829303132 |
- // TextView.cs: multi-line text editing
- using System;
- namespace Terminal.Gui {
- /// <summary>
- /// Event arguments for events for when the contents of the TextView change. E.g. the <see cref="TextView.ContentsChanged"/> event.
- /// </summary>
- public class ContentsChangedEventArgs : EventArgs {
- /// <summary>
- /// Creates a new <see cref="TextView.ContentsChanged"/> instance.
- /// </summary>
- /// <param name="currentRow">Contains the row where the change occurred.</param>
- /// <param name="currentColumn">Contains the column where the change occured.</param>
- public ContentsChangedEventArgs (int currentRow, int currentColumn)
- {
- Row = currentRow;
- Col = currentColumn;
- }
- /// <summary>
- ///
- /// Contains the row where the change occurred.
- /// </summary>
- public int Row { get; private set; }
- /// <summary>
- /// Contains the column where the change occurred.
- /// </summary>
- public int Col { get; private set; }
- }
- }
|