How do I highlight an element using C#? For comparison, see VBA's Element.IsHighlighted
Is the highlight needed for an interactive (selection) command or for (results) display purposes only?
For the latter case, I believe you can add elements to, and use: Bentley.DgnPlatformNET.ElementAgendaDisplayable.
FWIW. The IsHilighted method wraps and calls elementRef_getHiliteState().
HTH,Bob
Answer Verified By: Jon Summers
Unknown said:use: Bentley.DgnPlatformNET.ElementAgendaDisplayable
Thanks for that tip! Since it's an undocumented class I don't suppose I would have found it. FWIW, here's the code that highlights an element from outside a state function...
private void HighlightElement (Element el) { ElementAgendaDisplayable agenda = new ElementAgendaDisplayable(); agenda.Insert(el, true); agenda.Hilite(); }
Regards, Jon Summers LA Solutions