Overriding text propert of TextObject
i tried to change "Text" property of TextObject while i drag it into the designer from Dictionary.
i use this method;
private void environmentSettings1_ObjectInserted(object sender, FastReport.Design.ObjectInsertedEventArgs e)
{
TextObject txt;
if (e.Object.GetType() == typeof(FastReport.TextObject))
{
txt = (TextObject)e.Object;
txt.Text = "newText";
}
}
but, it doesn't work. how can i override text property of TextObject ?
Thanks
i use this method;
private void environmentSettings1_ObjectInserted(object sender, FastReport.Design.ObjectInsertedEventArgs e)
{
TextObject txt;
if (e.Object.GetType() == typeof(FastReport.TextObject))
{
txt = (TextObject)e.Object;
txt.Text = "newText";
}
}
but, it doesn't work. how can i override text property of TextObject ?
Thanks