NClass.DiagramEditor.ClassDiagram.Shapes.CommentShape.DrawText C# (CSharp) Method

DrawText() private method

private DrawText ( IGraphics g, bool onScreen, Style style ) : void
g IGraphics
onScreen bool
style Style
return void
		private void DrawText(IGraphics g, bool onScreen, Style style)
		{
			Rectangle textBounds = GetTextRectangle();

			if (string.IsNullOrEmpty(Text) && onScreen)
			{
				textBrush.Color = Color.FromArgb(128, style.CommentTextColor);
				g.DrawString(Strings.DoubleClickToEdit,
					style.CommentFont, textBrush, textBounds, format);
			}
			else
			{
				textBrush.Color = style.CommentTextColor;
				g.DrawString(Text, style.CommentFont, textBrush, textBounds, format);
			}
		}