Reference > Methods > AddAttributes Method > (ScriptTarget,String,String)

SharpPlot.AddAttributes Method (ScriptTarget,String,String)

Apply a handler to a known text item.

public void AddAttributes(
    ScriptTarget targetId,
    string propName,
    string propValue
);

Example

Put a simple handler pair on the subhead:

sp.AddAttributes(ScriptTarget.Subhead,"onMouseOver","this.style.color='Fuchsia';");
sp.AddAttributes(ScriptTarget.Subhead,"onMouseOut","this.style.color='Navy';");

For multi-part items (axis labels or keys) the items will have the handler applied individually, rather than as a group.

See also ...

SharpPlot Members | AddAttributes Method


Send comments on this topic
© Dyalog Ltd 2013