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.
Unfortunately, activation email could not send to your email. Please try again.

Property is obsolete

Thread ID:

Created:

Updated:

Platform:

Replies:

56026 Feb 8,2007 10:55 AM Feb 8,2007 01:18 PM Windows Forms 1
loading
Tags: Diagram
Lan Mo
Asked On February 8, 2007 10:55 AM

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;
}

J.Nagarajan [Syncfusion]
Replied On February 8, 2007 01:18 PM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;