| ||
Introducing SharpPlot Your First Chart Recent Updates Sample Charts Tutorials General Tutorials Chart Tutorials SharpPlot Class Properties Structures Enumerations Style examples Glossaries Active Charts VectorMath Class DBUtil Class Get SharpPlot Download SharpPlot Buying SharpPlot SharpPlot Support Upgrading from GraPL Release notes |
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 ); ExamplePut 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 |