MetroFramework.Controls.MetroComboBox.DrawTextPrompt C# (CSharp) Method

DrawTextPrompt() private method

private DrawTextPrompt ( Graphics g ) : void
g System.Drawing.Graphics
return void
        private void DrawTextPrompt(Graphics g)
        {
            Color backColor = BackColor;

            if (!useCustomBackColor)
            {
                backColor = MetroPaint.BackColor.Form(Theme);
            }

            Rectangle textRect = new Rectangle(2, 2, Width - 20, Height - 4);
            TextRenderer.DrawText(g, promptText, MetroFonts.ComboBox(metroComboBoxSize, metroComboBoxWeight), textRect, SystemColors.GrayText, backColor, TextFormatFlags.Left | TextFormatFlags.VerticalCenter | TextFormatFlags.EndEllipsis);
        }

Same methods

MetroComboBox::DrawTextPrompt ( ) : void