We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Property is obsolete

Hi,
Upgrade from V3.3.0.0 to V4.4.0.51.
This line:
mCurrLink.LineStyle.LineColor=clsConst.TREE_YES_COLOR;

got following warnings.

c:\pma\stn.pma.ul\frmdecisiontree.cs(3508,7): warning CS0618: 'Syncfusion.Windows.Forms.Diagram.SymbolBase.LineStyle' is obsolete: 'You should not use this property as symbol's children use their own LineStyles during renderring.'

I want ot know what property I should use to set the color instead.

Thanks,


My code:

Syncfusion.Windows.Forms.Diagram.Label lblYesNo=mCurrLink.GetChildByName(clsConst.YES_NO_LABEL_NAME) as Syncfusion.Windows.Forms.Diagram.Label;
lblYesNo.Text=sYesNo;
if(sYesNo==clsConst.YES_VALUE)
{
lblYesNo.Text=clsConst.YES_VALUE;
lblYesNo.FillStyle.Color=clsConst.TREE_YES_COLOR;
mCurrLink.LineStyle.LineColor=clsConst.TREE_YES_COLOR;
mCurrLink.FillStyle.Color=clsConst.TREE_YES_COLOR;
}
else
{
lblYesNo.Text=clsConst.NO_VALUE;
lblYesNo.FillStyle.Color=clsConst.TREE_NO_COLOR;
mCurrLink.LineStyle.LineColor=clsConst.TREE_NO_COLOR;
mCurrLink.FillStyle.Color=clsConst.TREE_NO_COLOR;
}

1 Reply

J. J.Nagarajan Syncfusion Team February 8, 2007 06:18 PM UTC

Hi Lan,

Sorry for the inconvenience caused. I was able to visualize the warning message that you have mentioned here. We have internally fixed this issue . Please create a Direct-Trac incident (mention the forum link in the subject line) so that we can update with the download link of the private patch including this fix.

Please let me know if you have any questions.

Thanks for using Syncfusion product.

Regards,
Nagaraj

Loader.
Live Chat Icon For mobile
Up arrow icon