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

Implement Underline property in RunFormat #7

Open
y0ung3r opened this issue Apr 17, 2024 · 0 comments
Open

Implement Underline property in RunFormat #7

y0ung3r opened this issue Apr 17, 2024 · 0 comments
Labels
area-OpenXml Issues that affect Open XML Format area-Word Issues that affect Word enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@y0ung3r
Copy link
Owner

y0ung3r commented Apr 17, 2024

RunFormat does not support Underline at this time. Let's add the ability to set this property.

Documentation

u specifies that the content should be displayed with an underline: <w:u w:val="double"/>.

  • color - specifies the color for the underlining. Values are given as hex values (in RRGGBB format). No #, unlike hex values in HTML/CSS. E.g., color="FFFF00". A value of auto is also permitted and will allow the consuming word processor to determine the color based on the context.

  • val - Specifies the pattern to be used to create the underline. Possible values are:

    • dash - a dashed line
    • dashDotDotHeavy - a series of thick dash, dot, dot characters
    • dashDotHeavy - a series of thick dash, dot characters
    • dashedHeavy - a series of thick dashes
    • dashLong - a series of long dashed characters
    • dashLongHeavy - a series of thick, long, dashed characters
    • dotDash - a series of dash, dot characters
    • dotDotDash - a series of dash, dot, dot characters
    • dotted - a series of dot characters
    • dottedHeavy - a series of thick dot characters
    • double - two lines
    • none - no underline
    • single - a single line
    • thick - a single think line
    • wave - a single wavy line
    • wavyDouble - a pair of wavy lines
    • wavyHeavy - a single thick wavy line
    • words - a single line beneath all non-space characters

Reference: ECMA-376, 3rd Edition (June, 2011), Fundamentals and Markup Language Reference § 17.3.2.40.
Source: http://officeopenxml.com/WPtextFormatting.php

@y0ung3r y0ung3r added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers area-OpenXml Issues that affect Open XML Format area-Word Issues that affect Word labels Apr 17, 2024
@y0ung3r y0ung3r changed the title Implement Underline property for Run Implement Underline property for RunFormat Apr 17, 2024
@y0ung3r y0ung3r changed the title Implement Underline property for RunFormat Implement Underline property in RunFormat Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-OpenXml Issues that affect Open XML Format area-Word Issues that affect Word enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant