System.Windows.Controls.TextBox.Select C# (CSharp) Method

Select() public method

public Select ( int start, int length ) : void
start int
length int
return void
		public void Select (int start, int length)
		{
			if (start < 0)
				throw new ArgumentOutOfRangeException ("start");
			
			if (length < 0)
				throw new ArgumentOutOfRangeException ("length");
			
			NativeMethods.text_box_base_select (this.native, start, length);
		}
		

Usage Example

Esempio n. 1
0
 /// <summary>
 /// Selects contents
 /// </summary>
 /// <param name="start">Start</param>
 /// <param name="length">Length</param>
 public void Select(int start, int length)
 {
     if (textBoxTemplated != null)
     {
         textBoxTemplated.Select(start, length);
     }
     else
     {
         textBox.Select(start, length);
     }
 }
All Usage Examples Of System.Windows.Controls.TextBox::Select