How do I change the foreground color of a hyperlinq?

Cannot use

Util.WithSyle (new Hyperlinq(() => {...},"text"),"foreground: gray") // not working Hyperlinq set its own style
new Hyperlinq(() => {...},Util.WithSyle ("text","foreground: gray")) // syntax error 2nd argument to hyperlinq must be a string


  • Another option is to use (the more recent) LINQPad.Controls.Hyperlink. This gives you much more control:

    var link = new LINQPad.Controls.Hyperlink ("test", link => {} ).Dump();
    link.Styles ["color"] = "gray";

    Press Ctrl+F1 and search for "LINQPad Controls" for more info.

Sign In or Register to comment.