1 override of PlaceholderText
System.Windows.Forms.Tests (1)
TextBoxTests.cs (1)
735public 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)
127using TextBox textBox = new() { PlaceholderText = placeholderText };
TextBoxTests.cs (6)
338PlaceholderText = "Enter your name" 396PlaceholderText = "Text" 399tb.PlaceholderText = null; 416PlaceholderText = "Enter your name" 434PlaceholderText = "Enter your name", 735public override string PlaceholderText { get => base.PlaceholderText; set => base.PlaceholderText = value; }
TextBoxTests.Rendering.cs (1)
20PlaceholderText = "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)
340Assert.False(string.IsNullOrEmpty(tb.PlaceholderText)); 347Assert.Equal(string.Empty, tb.PlaceholderText); 400Assert.Equal(string.Empty, tb.PlaceholderText); 426Assert.False(string.IsNullOrEmpty(tb.PlaceholderText)); 445Assert.False(string.IsNullOrEmpty(tb.PlaceholderText)); 735public override string PlaceholderText { get => base.PlaceholderText; set => base.PlaceholderText = value; }