| ||
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 > ReadComment Method SharpPlot.ReadComment MethodRecover a text comment, saved in any of the textual output formats. Only comments with associated keys can be recovered using this utility. This method may be called with a filename or the string result from any of the RenderXxx methods. Examplesp.AddComment("This is some text with a key","NOTE1"); sp.AddComment("Now is the time for ALL good men to come to the aid of the party!","NOTE2",true); // Recover both notes from EPS file string note1 = SharpPlot.ReadComment("sample.eps","NOTE1"); string note2 = SharpPlot.ReadComment("sample.eps","NOTE2",true); Overloads
If the text was compressed when added to the chart with AddComment, you must pass the decode flag here to reverse the compression. Comments are protected against ‘bad’ XML characters in SVG and VML output whether or not they are compressed and this is reversed here before extraction. See also ... |