| ||
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 > SetKeyFrame Method SharpPlot.SetKeyFrame MethodKey frame (tlhw in pts) to place the chart legend in a non-default location. The legend text will be wrapped into the frame width if necessary, and key-style ‘Autofit’ will force the key font to reduce until all the legend fits within the frame. The first legend is always written in the upper-left corner of the frame. public void SetKeyFrame( double top, double left, double height, double width ); Examplesp.SetKeyFrame(200,300,40,60); The frame is relative to the entire chart area – the paper size less the gutter width (typically 4pts all round). If the key has style ‘Boxed’ the box will be drawn around the text by default, not the entire extent of the frame. To draw around the frame, use the BoxFrame keystyle. See also ...SharpPlot Members | KeyStyles Enumeration |