Please try this above solution and let us know if it is helpful.
JVJohn van der PutteJuly 22, 2019 08:52 AM
I looked at the given link. Some parts I have already used. My application uses an xml document for the ever-present lexems. For this I use the code:
edcCODE.Configurator.Open ("F: \ VB2010 Proj \ Private \ PRIDE \ PRIDE \ PRIDE.PLC")
for the lexems that are named by the end user I use the following code to add this:
Dim currentConfigLanguage As IConfigLanguage = Me.edcCODE.Configurator ("PROTON")
Dim formatMethod As ISnippetFormat = Me.edcCODE.Language.Add ("CodeBehind")
formatMethod.Font = New Font ("Garamond", 12)
formatMethod.BackColor = Color.Green
Dim own_lexem As ConfigLexem = New ConfigLexem ("Graphic", "", FormatType.Custom, False)
own_lexem.FormatName = "CodeBehind"
this works as desired. both the lexems from the xml file are processed as well as the lexems via the code.
What I have a problem with is to remove a lexem that has been added via the code. I tried to remove a lexem via
but I don't know what should be placed after remove.
JPJagadeesan Pichaimuthu Syncfusion Team July 23, 2019 11:34 PM
Hi John van,
Thanks for your update.
We have checked your query “How to remove the lexems”. We suggest you to remove the added ConfigLexem from the Lexems collections using Remove() method. We have prepared the sample based on your requirement. Please find the code snippet, screenshot and sample for the same.