2 overrides of SelectedText
System.Windows.Forms (2)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
1236
public override string
SelectedText
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
1033
public override string
SelectedText
10 writes to SelectedText
System.Windows.Forms (2)
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1240
SelectedText
= text;
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
312
set { TextBox.
SelectedText
= value; }
System.Windows.Forms.Tests (8)
TextBoxBaseTests.cs (8)
2590
SelectedText
= value
2644
SelectedText
= value
2666
SelectedText
= value
2687
SelectedText
= value,
2718
control.
SelectedText
= value;
2737
control.
SelectedText
= value;
2742
control.
SelectedText
= value;
2753
Assert.Throws<ObjectDisposedException>(() => control.
SelectedText
= value);
66 references to SelectedText
System.Windows.Forms (2)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
1039
return base.
SelectedText
;
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
311
get { return TextBox.
SelectedText
; }
System.Windows.Forms.Tests (64)
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (7)
109
Assert.Empty(control.
SelectedText
);
1459
Assert.Equal("text", control.
SelectedText
);
1466
Assert.Equal("text", control.
SelectedText
);
1473
Assert.Empty(control.
SelectedText
);
1492
Assert.Empty(control.
SelectedText
);
1499
Assert.Empty(control.
SelectedText
);
1506
Assert.Equal("text", control.
SelectedText
);
TextBoxBaseTests.cs (56)
2548
Assert.Empty(control.
SelectedText
);
2555
Assert.Empty(control.
SelectedText
);
2566
Assert.Empty(control.
SelectedText
);
2575
Assert.Empty(control.
SelectedText
);
2594
Assert.Empty(control.
SelectedText
);
2648
Assert.Empty(control.
SelectedText
);
2670
Assert.Empty(control.
SelectedText
);
2692
Assert.Empty(control.
SelectedText
);
2721
Assert.Empty(control.
SelectedText
);
2738
Assert.Empty(control.
SelectedText
);
2743
Assert.Empty(control.
SelectedText
);
2816
Assert.Equal(expectedSelectedText, control.
SelectedText
);
2823
Assert.Equal(expectedSelectedText, control.
SelectedText
);
2844
Assert.Equal(expectedSelectedText, control.
SelectedText
);
2850
Assert.Equal(expectedSelectedText, control.
SelectedText
);
2879
Assert.Equal(expectedSelectedText, control.
SelectedText
);
2889
Assert.Equal(expectedSelectedText, control.
SelectedText
);
2992
Assert.Empty(control.
SelectedText
);
2999
Assert.Empty(control.
SelectedText
);
3020
Assert.Equal(expectedSelectedText, control.
SelectedText
);
3026
Assert.Equal(expectedSelectedText, control.
SelectedText
);
3056
Assert.Empty(control.
SelectedText
);
3066
Assert.Empty(control.
SelectedText
);
3224
Assert.Empty(control.
SelectedText
);
3235
Assert.Empty(control.
SelectedText
);
3278
Assert.Equal(expectedSelectedText, control.
SelectedText
);
3289
Assert.Equal(expectedSelectedText, control.
SelectedText
);
3308
Assert.Empty(control.
SelectedText
);
3319
Assert.Empty(control.
SelectedText
);
3343
Assert.Empty(control.
SelectedText
);
3356
Assert.Empty(control.
SelectedText
);
3387
Assert.Empty(control.
SelectedText
);
3400
Assert.Empty(control.
SelectedText
);
3452
Assert.Empty(control.
SelectedText
);
3466
Assert.Empty(control.
SelectedText
);
3867
Assert.Empty(control.
SelectedText
);
3885
Assert.Empty(control.
SelectedText
);
3905
Assert.Equal(expectedSelectedText, control.
SelectedText
);
3926
Assert.Equal(expectedSelectedText, control.
SelectedText
);
3948
Assert.Equal(expectedSelectedText, control.
SelectedText
);
3971
Assert.Empty(control.
SelectedText
);
4000
Assert.Empty(control.
SelectedText
);
4217
Assert.Empty(control.
SelectedText
);
4233
Assert.Empty(control.
SelectedText
);
6234
Assert.Equal(expectedSelectedText, control.
SelectedText
);
6241
Assert.Equal(expectedSelectedText, control.
SelectedText
);
6264
Assert.Equal(expectedSelectedText, control.
SelectedText
);
6274
Assert.Equal(expectedSelectedText, control.
SelectedText
);
6324
Assert.Empty(control.
SelectedText
);
6331
Assert.Empty(control.
SelectedText
);
6345
Assert.Equal("text", control.
SelectedText
);
6352
Assert.Equal("text", control.
SelectedText
);
6371
Assert.Empty(control.
SelectedText
);
6381
Assert.Empty(control.
SelectedText
);
6406
Assert.Equal("text", control.
SelectedText
);
6416
Assert.Equal("text", control.
SelectedText
);
TextBoxTests.cs (1)
102
Assert.Empty(control.
SelectedText
);