using System;
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.PageElements;
public class OutlinedTextArea : TextArea
{
private float borderWidth = 1.0f;
public OutlinedTextArea(string text, float x, float y, float width, float height)
: base(text, x, y, width, height) { }
public OutlinedTextArea(string text, float x, float y, float width, float height,
Font font, float fontSize)
: base(text, x, y, width, height, font, fontSize) { }
public float BorderWidth
{
get { return this.borderWidth; }
set { this.borderWidth = value; }
}
public override void Draw(ceTe.DynamicPDF.IO.PageWriter writer)
{
writer.SetGraphicsMode();
writer.SetStrokeColor(base.TextColor);
writer.SetLineWidth(this.borderWidth);
writer.SetTextMode();
writer.SetTextRenderingMode(TextRenderingMode.Stroke);
base.Draw(writer);
writer.SetTextMode();
writer.SetTextRenderingMode(TextRenderingMode.Fill);
}
}