Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to add custom lists (simplified logic) #208

Draft
wants to merge 26 commits into
base: master
Choose a base branch
from

Conversation

PrzemyslawKlys
Copy link
Member

@PrzemyslawKlys PrzemyslawKlys commented Feb 18, 2024

This PR:

  • Makes sure AbstractNum is assigned unique value whether it's new document or loaded
  • Tries to add custom lists (WIP)

Significant additions to the `WordList` class in `WordList.Private.cs` introduce new methods for handling numbering definitions in Word documents. Key functionalities include creating numbering definitions, retrieving the next abstract number and numbering instance, and managing various numbering properties (bold, font size, color, italic, underline, strike, double strike).

Refactored and removed unused properties and methods in `WordList.cs`, changing the class definition to `public partial class WordList` to indicate its split across multiple files. These changes enhance the functionality and organization of the `WordList` class for better handling of numbered lists.
This commit introduces the `Example_BasicLists10` method in the `Lists` class of the `OfficeIMO.Examples.Word` namespace. The method generates a Word document featuring two custom lists: one with lower letters and brackets, and another with lower letters and dots. It configures properties such as boldness, font size, and color for the lists and their items, and centers the paragraphs. The document is saved with an option to open it afterward.
…es related to list formatting and initialization.
…thods related to numbering and list management.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant