[CommandMethod("TablePreviewTest")]
public void TestCommand()
{
try
{
ShowWindow();
}
catch (Autodesk.AutoCAD.Runtime.Exception exception)
{
MessageBox.Show(exception.Message + Environment.NewLine + exception.StackTrace);
}
}
private static void ShowWindow()
{
Autodesk.AutoCAD.Internal.TableStylePreview tableStylePreview = new TableStylePreview();
tableStylePreview.Width = 250;
tableStylePreview.Height = 250;
tableStylePreview.DataText = "This is data text";
tableStylePreview.TitleText = "This is title text";
Form1 form1 = new Form1();
form1.Controls.Add(tableStylePreview);
form1.ShowDialog();
}