| |||||||||||||||
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 > LabelStyle Property SharpPlot.LabelStyle PropertySet Label style public LabelStyles LabelStyle {get; set;} Examplesp.LabelStyle = LabelStyles.FlatText; To blank behind axis labels (useful if you have intercept axes and grid lines) set the label style to ‘opaque’: sp.LabelStyle = LabelStyles.Opaque; Labels are written by default to the left of the primary Y-axis and to the right of the secondary. Use style ‘centred’ to have them written (centre-aligned) on top of the axis. This would normally be used with the ‘opaque’ setting to make a white knockout over the axis line in which to write the text. Similarly, use style ‘middle’ to place the labels over the X-axis rather than below it. sp.LabelStyle = LabelStyles.Opaque | LabelStyles.Middle; Labels on 3D charts are normally angled to match the slope of the axis. The text may be more readable at small sizes if written horizontally, right-aligned to the tickmarks. sp.LabelStyle = LabelStyles.FlatText; will achieve this effect. Options
See also ... |