LJ
Leon Jones
March 9, 2005 07:17 AM UTC
This is the code and stack trace:
Format myFormat = new Format("MyFormat", Color.Green, Color.Yellow, Color.Aqua, new Font("Tahoma", 8));
language.Add(myFormat);
ConfigLexem myLexem = new ConfigLexem("~", "", FormatType.Custom, false);
myLexem.FormatName = myFormat.Name;
language.Lexems.Add(myLexem);
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at Syncfusion.Windows.Forms.Edit.Implementation.Config.ConfigLexem.get_Format()
at Syncfusion.Windows.Forms.Edit.Implementation.Parser.RenderedLine.Measure(Single maxSize)
at Syncfusion.Windows.Forms.Edit.Implementation.Parser.RenderableLexemParser.GraphicalToVirtual(Point point)
at Syncfusion.Windows.Forms.Edit.StreamEditControl.UpdateToolTip(Object sender, UpdateTooltipEventArgs e)
at Syncfusion.Windows.Forms.Edit.Dialogs.ToolTipEx.m_timer_Tick(Object sender, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr idEvent, IntPtr dwTime)