protected virtual bool ShouldSerializeTitleAppearence() { TextAppearence ta = new TextAppearence(); ta.Font = new Font("Verdana", 12f, FontStyle.Bold, GraphicsUnit.Point); return TitleAppearence != ta; }
public void DrawText(Graphics graphics, RectangleF rectangle, string text, TextAppearence app) { if (!rectangle.IsEmpty) { graphics.DrawString(text, app.Font, new SolidBrush(app.TextShadowColor), rectangle); rectangle.X -= app.Xshift; rectangle.Y -= app.Yshift; graphics.DrawString(text, app.Font, new SolidBrush(app.TextColor), rectangle); } }
protected virtual void ResetTitleAppearence() { titleAppearence = new TextAppearence(); titleAppearence.Font = new Font("Verdana", 12f, FontStyle.Bold, GraphicsUnit.Point); }
protected virtual bool ShouldSerializeSubtitleAppearence() { TextAppearence sa = new TextAppearence(); sa.Font = new Font("Microsoft Sans", 8.25f, GraphicsUnit.Point); return SubtitleAppearence != sa; }
protected virtual void ResetSubtitleAppearence() { subtitleAppearence = new TextAppearence(); subtitleAppearence.Font = new Font("Microsoft Sans", 8.25f, GraphicsUnit.Point); }
protected virtual void ResetTitleAppearence() { this.titleAppearence = new TextAppearence(); }
protected virtual void ResetSubtitleAppearence() { this.subtitleAppearence = new TextAppearence(); this.subtitleAppearence.Font = new Font("Microsoft Sans", 8.25f, GraphicsUnit.Point); }
protected virtual void ResetTitleAppearence() { this.titleAppearence = new TextAppearence(); this.titleAppearence.Font = new Font("Microsoft Sans", 8.25f, FontStyle.Bold, GraphicsUnit.Point); }