Exemple #1
0
 /// <summary>
 ///   Updates the internal start and end positions with the current selection on the textbox. </summary>
 /// <seealso cref="Disable" />
 public void Update()
 {
     if (m_textBox != null)
     {
         m_selection.Get(out m_start, out m_end);
     }
 }
Exemple #2
0
 /// <summary>
 ///   Initializes a new instance of the Saver class by associating it with a TextBoxBase derived object. </summary>
 /// <param name="textBox">
 ///   The TextBoxBase object for which the selection is being saved. </param>
 /// <remarks>
 ///   This constructor saves the textbox's start and end position of the selection inside private fields. </remarks>
 /// <seealso cref="System.Windows.Forms.TextBoxBase" />
 public Saver(TextBoxBase textBox)
 {
     m_textBox   = textBox;
     m_selection = new Selection(textBox);
     m_selection.Get(out m_start, out m_end);
 }
Exemple #3
0
			/// <summary>
			///   Initializes a new instance of the Saver class by associating it with a TextBoxBase derived object. </summary>
			/// <param name="textBox">
			///   The TextBoxBase object for which the selection is being saved. </param>
			/// <remarks>
			///   This constructor saves the textbox's start and end position of the selection inside private fields. </remarks>
			/// <seealso cref="System.Windows.Forms.TextBoxBase" />	
			public Saver(TextBoxBase textBox)
			{
				m_textBox = textBox;
				m_selection = new Selection(textBox);
				m_selection.Get(out m_start, out m_end);			
			}