1 override of PlaceholderText
System.Windows.Forms.Tests (1)
TextBoxTests.cs (1)
737
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)
129
using TextBox textBox = new() {
PlaceholderText
= placeholderText };
TextBoxTests.cs (6)
340
PlaceholderText
= "Enter your name"
398
PlaceholderText
= "Text"
401
tb.
PlaceholderText
= null;
418
PlaceholderText
= "Enter your name"
436
PlaceholderText
= "Enter your name",
737
public override string PlaceholderText { get => base.PlaceholderText; set => base.
PlaceholderText
= value; }
TextBoxTests.Rendering.cs (1)
22
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)
342
Assert.False(string.IsNullOrEmpty(tb.
PlaceholderText
));
349
Assert.Equal(string.Empty, tb.
PlaceholderText
);
402
Assert.Equal(string.Empty, tb.
PlaceholderText
);
428
Assert.False(string.IsNullOrEmpty(tb.
PlaceholderText
));
447
Assert.False(string.IsNullOrEmpty(tb.
PlaceholderText
));
737
public override string PlaceholderText { get => base.
PlaceholderText
; set => base.PlaceholderText = value; }