Reference > Methods > AddEffect Method

SharpPlot.AddEffect Method

Associates arbitrary SVG source with any standard text item.

public void AddEffect(
    ScriptTarget target,
    string effect
);

Description

This simply inserts arbitrary SVG code into the ‘group’ tag for the text item, so almost anything goes. It could be used to make a heading ‘shadowed’, or to add animations, for example to have text slide in from the side. Check the SVG documentation for details on the syntax required for filters and animations.

Example

sp.AddEffect(ScriptTarget.Heading,"#MyShadow");
sp.AddEffect(ScriptTarget.Heading,"letter-spacing:3");

See also ...

SharpPlot Members


Send comments on this topic
© Dyalog Ltd 2013