Base:
property
SelectedText
System.Windows.Forms.TextBoxBase.SelectedText
15 writes to SelectedText
System.Windows.Forms.Tests (15)
System\Windows\Forms\RichTextBoxTests.cs (15)
3203
SelectedText
= "ex"
3221
SelectedText
= "ex"
3458
SelectedText
= "ex"
3476
SelectedText
= "ex"
3516
SelectedText
= value
3522
control.
SelectedText
= value;
3540
control.
SelectedText
= value;
3548
control.
SelectedText
= value;
3563
SelectedText
= value
3569
control.
SelectedText
= value;
3581
SelectedText
= value
3587
control.
SelectedText
= value;
3608
control.
SelectedText
= value;
3616
control.
SelectedText
= value;
3630
Assert.Throws<ObjectDisposedException>(() => control.
SelectedText
= value);
56 references to SelectedText
System.Windows.Forms (1)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
1062
return
SelectedText
.Length;
System.Windows.Forms.Tests (55)
System\Windows\Forms\RichTextBoxTests.cs (55)
3275
Assert.Empty(control.
SelectedText
);
3281
Assert.Empty(control.
SelectedText
);
3301
Assert.Empty(control.
SelectedText
);
3310
Assert.Empty(control.
SelectedText
);
3329
Assert.Empty(control.
SelectedText
);
3335
Assert.Empty(control.
SelectedText
);
3358
Assert.Empty(control.
SelectedText
);
3367
Assert.Empty(control.
SelectedText
);
3414
string text1 = control.
SelectedText
;
3419
string text2 = control.
SelectedText
;
3436
string text1 = control.
SelectedText
;
3444
string text2 = control.
SelectedText
;
3460
string text1 = control.
SelectedText
;
3465
string text2 = control.
SelectedText
;
3486
string text1 = control.
SelectedText
;
3494
string text2 = control.
SelectedText
;
3507
Assert.Throws<ObjectDisposedException>(() => control.
SelectedText
);
3518
Assert.Empty(control.
SelectedText
);
3523
Assert.Empty(control.
SelectedText
);
3541
Assert.Empty(control.
SelectedText
);
3549
Assert.Empty(control.
SelectedText
);
3565
Assert.Empty(control.
SelectedText
);
3570
Assert.Empty(control.
SelectedText
);
3583
Assert.Empty(control.
SelectedText
);
3588
Assert.Empty(control.
SelectedText
);
3609
Assert.Empty(control.
SelectedText
);
3617
Assert.Empty(control.
SelectedText
);
5451
Assert.Equal(expectedSelectedText, control.
SelectedText
);
5458
Assert.Equal(expectedSelectedText, control.
SelectedText
);
5479
Assert.Equal(expectedSelectedText, control.
SelectedText
);
5485
Assert.Equal(expectedSelectedText, control.
SelectedText
);
5514
Assert.Equal(expectedSelectedText, control.
SelectedText
);
5524
Assert.Equal(expectedSelectedText, control.
SelectedText
);
6040
Assert.Empty(control.
SelectedText
);
6047
Assert.Empty(control.
SelectedText
);
6068
Assert.Equal(expectedSelectedText, control.
SelectedText
);
6074
Assert.Equal(expectedSelectedText, control.
SelectedText
);
6104
Assert.Empty(control.
SelectedText
);
6114
Assert.Empty(control.
SelectedText
);
7066
Assert.Empty(control.
SelectedText
);
7079
Assert.Empty(control.
SelectedText
);
7181
Assert.Empty(control.
SelectedText
);
7192
Assert.Empty(control.
SelectedText
);
7213
Assert.Empty(control.
SelectedText
);
7224
Assert.Empty(control.
SelectedText
);
7253
Assert.Empty(control.
SelectedText
);
7267
Assert.Empty(control.
SelectedText
);
7299
Assert.Empty(control.
SelectedText
);
7315
Assert.Empty(control.
SelectedText
);
7408
Assert.Empty(control.
SelectedText
);
7421
Assert.Empty(control.
SelectedText
);
7473
Assert.Empty(control.
SelectedText
);
7487
Assert.Empty(control.
SelectedText
);
10590
Assert.Equal("is ###NOT### hidden", richTextBox.
SelectedText
);
10691
richTextBox2.
SelectedText
.Should().Be("Sample for HIDDEN text");