Hello
I'm trying to programatically add a complex lexem to a edit control, using as basis a example yours, like this:
{
string str="";
for(int i=10;i>0;i--)
{
str="[Table "+i.ToString()+ "]";
configlexem1=new ConfigLexem();
configlexem1.BeginBlock=str;
configlexem1.Type =FormatType.KeyWord;
configlexem1.IsComplex = true;
Split split1 = new Split();
split1.Text="[Table " + i.ToString() +"]";
this.editControl1.Language.Splits.Add(split1);
this.editControl1.Language.Lexems.Add(configlexem1);
this.editControl1.Language.ResetCaches();
}
this.editControl1.Refresh();
MessageBox.Show("Finished creating lexems with begin block Table1,Table2,Table3.... Table10");
this.menuItem1.Enabled=false;
}
But it does not work.
How can I programatically add a complex lexem to a edit control?
I use Visual Studio 2005 and Syncfusion 4.2.0.60
Thanks in advance
Sample2_f407d2d8.zip