NPlot Documented Class Library

Legend Members

Legend overview

Public Static Methods

Equals (inherited from Object)Determines whether the specified Object instances are considered equal.
ReferenceEquals (inherited from Object)Determines whether the specified Object instances are the same instance.

Public Instance Constructors

Legend Constructor Default constructor.

Public Instance Properties

AutoScaleText (inherited from LegendBase) Whether or not to auto scale text in the legend according the physical dimensions of the plot surface.
BackgroundColor (inherited from LegendBase) The background color of the legend.
BorderColor (inherited from LegendBase) The color of the legend border.
BorderStyle (inherited from LegendBase) The border style to use for the legend.
Font (inherited from LegendBase) The font used to draw text in the legend.
HorizontalEdgePlacement Whether or not to attach the legend on the inside of the left or right axis (which, is specified using the AttachTo method) or the outside.
NeverShiftAxes Whether or not the positions of the Axes may be shifted to make room for the Legend.
NumberItemsHorizontally (inherited from LegendBase) Setting this does two things. First of all, it sets the maximum number of items in the legend horizontally. Second of all, it makes the legend grow vertically (as it must given this constraint).
NumberItemsVertically (inherited from LegendBase) Setting this does two things. First of all, it sets the maximum number of items in the legend vertically. Second of all, it makes the legend grow horizontally (as it must given this constraint).
TextColor (inherited from LegendBase) The color used to draw text in the legend.
VerticalEdgePlacement Whether or not to attach the legend on the inside of the top or bottom axis (which, is specified using the AttachTo method) or the outside.
XOffset Offset from the chosen Y-Axis. TODO: better description.
YOffset Offset from the X-Axis. TODO: better description.

Public Instance Methods

AttachTo Specify the Axes to attach the legend to.
Draw (inherited from LegendBase) Draw The legend
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetBoundingBox (inherited from LegendBase) Get the bounding box of the rectangle.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
ToString (inherited from Object)Returns a String that represents the current Object.
UpdateAxesPositions Updates the PlotSurface2D axes to compensate for the legend.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

Legend Class | NPlot Namespace