MetroFramework.Controls.MetroComboBox.DrawTextPrompt C# (CSharp) 메소드

DrawTextPrompt() 개인적인 메소드

private DrawTextPrompt ( Graphics g ) : void
g System.Drawing.Graphics
리턴 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