| ||
SharpPlot Tutorials General Tutorials Chart Samples Style Examples SharpLeaf Tutorials Document Layout Tutorials Text Flow Tutorials Table Tutorials Visual Glossaries SharpPlot Class SharpPlot Properties SharpPlot Structures SharpPlot Enumerations PageMap Class SharpLeaf Reference SharpLeaf Class SharpLeaf Properties SharpLeaf Methods Table Class Table Properties Table Methods SharpLeaf Structures FontType Structure ParagraphStyle Structure BoxStyle Structure SharpLeaf Enumerations DocumentLayout Classes DocumentLayout Class PageLayout Class PageElement Abstract Class Frame : PageElement Class TextBlock : PageElement Class ImageBlock : PageElement Class Box : PageElement Class Rule : PageElement Class Common Reference Document Class VectorMath Class DbUtil Class Download Release Notes Licensing |
SharpPlot Reference > SharpPlot Methods > AddEffect Method SharpPlot.AddEffect MethodAssociates arbitrary SVG source with any standard text item. public void AddEffect( ScriptTarget target, string effect ); DescriptionThis 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. Examplestring svgfiters = "<defs> <filter id=\"MyShadow\"> <feGaussianBlur in=\"SourceAlpha\" stdDeviation=\"12\" result=\"blur\"/> " + "<feOffset in=\"blur\" dx=\"24\" dy=\"20\" result=\"offsetBlur\"/> <feMerge> <feMergeNode in=\"offsetBlur\"/> " + "<feMergeNode in=\"SourceGraphic\"/> </feMerge> </filter> </defs>"; sp.IncludeSource(svgfilters); sp.AddEffect(ScriptTarget.Heading,"#MyShadow"); sp.AddEffect(ScriptTarget.Heading,"letter-spacing:3"); See also ... |