Skip to content

Remove text highlight #690

Closed
Closed

Description

@AdamShakhabov

Using Color.NoColor as shown below should remove the text highlight:

var pres = new Presentation("pres.pptx");
var portion = pres.Slide(1).Shape("TextBox 1").TextBox!.Paragraphs[0].Portions[0];

portion.TextHighlightColor = Color.NoColor;

image

Activity

  1. jcoliz commented on May 18, 2024

    @jcoliz
    Contributor

    Note that in current code, if there is no highlight applied, Color.Transparent is returned. Perhaps it would make sense in the setter to interpret Color.Transarent as "Remove highlight element for this text block."

  2. moved this to To do in v1on May 19, 2024
  3. changed the title [-]"No Color" text highlight[/-] [+]Remove text highlight[/+] on Jan 23, 2025
  4. added
    help wantedMaintainer wants help on this issue
    good first issueThis issue is a good issue for first-time contributors
    on Jan 23, 2025
  5. moved this from Backlog to Ready in v1on Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueThis issue is a good issue for first-time contributorshelp wantedMaintainer wants help on this issue

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions