summaryrefslogtreecommitdiff
path: root/Penguloon/Controls/ControlBase.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Penguloon/Controls/ControlBase.cs')
-rw-r--r--Penguloon/Controls/ControlBase.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Penguloon/Controls/ControlBase.cs b/Penguloon/Controls/ControlBase.cs
index 42c729e..b6b7a57 100644
--- a/Penguloon/Controls/ControlBase.cs
+++ b/Penguloon/Controls/ControlBase.cs
@@ -30,6 +30,7 @@ namespace Penguloon.Controls
public TextAllignment TextAllignment { get; set; } = TextAllignment.CenterMiddle;
public int PaddingTop { get; set; } = 0;
+ public bool DrawText { get; set; } = true;
/// <summary>
/// Base constructor.
@@ -66,6 +67,8 @@ namespace Penguloon.Controls
destinationRectangle: new Rectangle(Position.ToPoint(), Size.ToPoint())); break;
}
+ if (!DrawText) return;
+
if (Font == null) return;
if (string.IsNullOrWhiteSpace(Text)) return;