| ||
SharpPlot Tutorials General Tutorials Chart Samples Style Examples SharpLeaf Tutorials Document Layout Tutorials Text Flow Tutorials Table Tutorials Visual Glossaries SharpPlot Class SharpPlot Methods 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 Properties > KeyLimit Property SharpPlot.KeyLimit PropertySet a maximum number of legend items to appear when a legend is next created. public int KeyLimit {get; set;} Examplesp.KeyLimit = 2; This can be used to restrict the number of key items output (setting it to zero prevents the legend from being drawn) when a legend is created. This may be automatic (legends are flushed when the finished chart is rendered) or explicit (by a call to DrawKey). The KeyStyle property may be used to reposition the legend frame between each call, for example to have the key split between two regions, top left and top right. Resetting this to the default value of -1 will cause the remaining key items to be output at the next opportunity. To prevent SharpPlot from flushing unwanted items when the chart is rendered, call ResetKey to remove any pending items. See also ...SharpPlot.KeyStyle Property | SharpPlot.DrawKey Method | SharpPlot.ResetKey Method |