xceedsoftware / DocX

Fast and easy to use .NET library that creates or modifies Microsoft Word files without installing Word.
Other
1.78k stars 474 forks source link

Warning about obsolete functions #477

Open valimaties opened 6 months ago

valimaties commented 6 months ago

This is from Output window:

XceedDocX\Xceed.Document.NET\Src\Paragraph.cs(2250,11,2250,25): warning CS0618: 'Formatting.Shading' is obsolete: 'This property is obsolete and should no longer be used. Use the ShadingPattern property instead.'
XceedDocX\Xceed.Document.NET\Src\Paragraph.cs(2251,18,2251,32): warning CS0618: 'Formatting.Shading' is obsolete: 'This property is obsolete and should no longer be used. Use the ShadingPattern property instead.'
XceedDocX\Xceed.Document.NET\Src\Paragraph.cs(2251,9,2251,40): warning CS0618: 'Paragraph.Shading(Color, ShadingType)' is obsolete: 'This method is obsolete and should no longer be used. Use the ShadingPattern method instead.'

Do you think these functions should be replaced in the near future? Regards, Vali

XceedBoucherS commented 6 months ago

Hi, Could you try to use the suggested functions ? It should do the same more efficiently.

Thanks

valimaties commented 6 months ago

Hi. As I already said on #476 issue, even if I do some modifications on my branch, when you update to a new version without making these modifications I have to undo my code to be able to add your updates to my fork. I don't know, maybe there is a way to merge both code, I'm not so familiar with git (shame on me :) ).

Regards, Vali