Example #1
0
 ///<summary>
 ///Creates a new object that is a copy of the current instance.
 ///</summary>
 ///
 ///<returns>
 ///A new object that is a copy of this instance.
 ///</returns>
 ///<filterpriority>2</filterpriority>
 public object Clone()
 {
     TextAppearence appearence = new TextAppearence();
     appearence.TextColor = TextColor;
     appearence.TextShadowColor = TextShadowColor;
     appearence.Xshift = Xshift;
     appearence.font = (Font) font.Clone();
     appearence.Yshift = Yshift;
     return appearence;
 }
 protected virtual void ResetTitleAppearence()
 {
     titleAppearence = new TextAppearence();
 }
 protected virtual bool ShouldSerializeSubtitleAppearence()
 {
     TextAppearence sa = new TextAppearence();
     sa.Font = new Font("Microsoft Sans", 8.25f, GraphicsUnit.Point);
     return SubtitleAppearence != sa;
 }
Example #4
0
 protected virtual bool ShouldSerializeTitleAppearence()
 {
     TextAppearence ta = new TextAppearence();
     ta.Font = new Font("Verdana", 12f, FontStyle.Bold, GraphicsUnit.Point);
     return TitleAppearence != ta;
 }
 protected virtual void ResetSubtitleAppearence()
 {
     subtitleAppearence = new TextAppearence();
     subtitleAppearence.Font = new Font("Microsoft Sans", 8.25f, GraphicsUnit.Point);
 }
 protected virtual bool ShouldSerializeTitleAppearence()
 {
     TextAppearence ta = new TextAppearence();
     ta.Font = new Font("Microsoft Sans", 8.25f, FontStyle.Bold, GraphicsUnit.Point);
     return ta != titleAppearence;
 }
Example #7
0
 protected virtual void ResetTitleAppearence()
 {
     titleAppearence = new TextAppearence();
     titleAppearence.Font = new Font("Verdana", 12f, FontStyle.Bold, GraphicsUnit.Point);
 }
 protected virtual void ResetTitleAppearence()
 {
     titleAppearence = new TextAppearence();
     titleAppearence.Font = new Font("Microsoft Sans", 8.25f, FontStyle.Bold, GraphicsUnit.Point);
 }
Example #9
0
 protected virtual void ResetSubtitleAppearence()
 {
     subtitleAppearence      = new TextAppearence();
     subtitleAppearence.Font = new Font("Microsoft Sans", 8.25f, GraphicsUnit.Point);
 }
Example #10
0
 protected virtual void ResetTitleAppearence()
 {
     titleAppearence      = new TextAppearence();
     titleAppearence.Font = new Font("Verdana", 12f, FontStyle.Bold, GraphicsUnit.Point);
 }
Example #11
0
 protected virtual void ResetTitleAppearence()
 {
     titleAppearence = new TextAppearence();
 }
Example #12
0
 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);
     }
 }