1 override of PlaceholderText
System.Windows.Forms.Tests (1)
TextBoxTests.cs (1)
735
public override string
PlaceholderText
{ get => base.PlaceholderText; set => base.PlaceholderText = value; }
9 writes to PlaceholderText
System.Windows.Forms.Tests (8)
System\Windows\Forms\AccessibleObjects\TextBoxAccessibleObjectTests.cs (1)
127
using TextBox textBox = new() {
PlaceholderText
= placeholderText };
TextBoxTests.cs (6)
338
PlaceholderText
= "Enter your name"
396
PlaceholderText
= "Text"
399
tb.
PlaceholderText
= null;
416
PlaceholderText
= "Enter your name"
434
PlaceholderText
= "Enter your name",
735
public override string PlaceholderText { get => base.PlaceholderText; set => base.
PlaceholderText
= value; }
TextBoxTests.Rendering.cs (1)
20
PlaceholderText
= "abc",
WinFormsControlsTest (1)
MultipleControls.Designer.cs (1)
120
this.textBox1.
PlaceholderText
= "Type some text here...";
10 references to PlaceholderText
System.Windows.Forms (4)
System\Windows\Forms\Controls\TextBox\TextBox.cs (3)
864
/// Draws the <see cref="
PlaceholderText
"/> in the client area of the <see cref="TextBox"/> using the default font and color.
910
TextRenderer.DrawTextInternal(hdc,
PlaceholderText
, Font, rectangle, SystemColors.GrayText, TextRenderer.DefaultQuality, flags);
978
!string.IsNullOrEmpty(
PlaceholderText
) &&
System\Windows\Forms\Controls\TextBox\TextBox.TextBoxAccessibleObject.cs (1)
21
string? placeholderText = this.TryGetOwnerAs(out TextBox? owner) ? owner.
PlaceholderText
: null;
System.Windows.Forms.Tests (6)
TextBoxTests.cs (6)
340
Assert.False(string.IsNullOrEmpty(tb.
PlaceholderText
));
347
Assert.Equal(string.Empty, tb.
PlaceholderText
);
400
Assert.Equal(string.Empty, tb.
PlaceholderText
);
426
Assert.False(string.IsNullOrEmpty(tb.
PlaceholderText
));
445
Assert.False(string.IsNullOrEmpty(tb.
PlaceholderText
));
735
public override string PlaceholderText { get => base.
PlaceholderText
; set => base.PlaceholderText = value; }