1 override of PlaceholderText
System.Windows.Forms.Tests (1)
TextBoxTests.cs (1)
737public 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)
129using TextBox textBox = new() { PlaceholderText = placeholderText };
TextBoxTests.cs (6)
340PlaceholderText = "Enter your name" 398PlaceholderText = "Text" 401tb.PlaceholderText = null; 418PlaceholderText = "Enter your name" 436PlaceholderText = "Enter your name", 737public override string PlaceholderText { get => base.PlaceholderText; set => base.PlaceholderText = value; }
TextBoxTests.Rendering.cs (1)
22PlaceholderText = "abc",
WinFormsControlsTest (1)
MultipleControls.Designer.cs (1)
120this.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. 910TextRenderer.DrawTextInternal(hdc, PlaceholderText, Font, rectangle, SystemColors.GrayText, TextRenderer.DefaultQuality, flags); 978!string.IsNullOrEmpty(PlaceholderText) &&
System\Windows\Forms\Controls\TextBox\TextBox.TextBoxAccessibleObject.cs (1)
21string? placeholderText = this.TryGetOwnerAs(out TextBox? owner) ? owner.PlaceholderText : null;
System.Windows.Forms.Tests (6)
TextBoxTests.cs (6)
342Assert.False(string.IsNullOrEmpty(tb.PlaceholderText)); 349Assert.Equal(string.Empty, tb.PlaceholderText); 402Assert.Equal(string.Empty, tb.PlaceholderText); 428Assert.False(string.IsNullOrEmpty(tb.PlaceholderText)); 447Assert.False(string.IsNullOrEmpty(tb.PlaceholderText)); 737public override string PlaceholderText { get => base.PlaceholderText; set => base.PlaceholderText = value; }