Warning about obsolete functions

Open
#477 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp
Domain
backend

Research direction

Start in XceedDocX/Xceed.Document.NET/Src/Paragraph.cs around lines 2250-2251 and review the obsolete Formatting.Shading property and Paragraph.Shading method usages. Replace them with the corresponding ShadingPattern APIs if their behavior is equivalent, then build the project and confirm these CS0618 warnings no longer appear.

Written by the indexing model from the issue text.

Description

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

Dominant language
C#
Stars
1.9k
Forks
483
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from xceedsoftware/DocX

All issues in xceedsoftware/DocX

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.