ZedGraph LogoZedGraph Class Library Documentation
Legend Class
NamespacesZedGraphLegend
This class encapsulates the chart Legend that is displayed in the GraphPane
Declaration Syntax
C#Visual BasicVisual C++
<SerializableAttribute> _
Public Class Legend _
	Implements ICloneable, ISerializable
[SerializableAttribute]
public ref class Legend : ICloneable, ISerializable
Members
All MembersConstructorsMethodsPropertiesFields



IconMemberDescription
LegendLegendNew()()
Default constructor that sets all Legend properties to default values as defined in the Legend..::Default class.

LegendLegendNew(Legend)
The Copy Constructor

Border
The Border class used to draw the border border around this Legend.

CalcRect(Graphics, PaneBase, Single, RectangleF%)
Calculate the Legend rectangle (Rect), taking into account the number of required legend entries, and the legend drawing preferences.

Clone()()
Typesafe, deep-copy clone method.

Draw(Graphics, PaneBase, Single)
Render the Legend to the specified Graphics device.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Fill
Gets or sets the Fill data for this Legend background.

Finalize()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
FindPoint(PointF, PaneBase, Single, Int32%)
Determine if a mouse point is within the legend, and if so, which legend entry (CurveItem) is nearest.

FontSpec
Access to the FontSpec class used to render the Legend entries

Gap
Gets or sets the gap size between the legend and the Rect.

GetHashCode()()
Serves as a hash function for a particular type. GetHashCode()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
GetObjectData(SerializationInfo, StreamingContext)
Populates a SerializationInfo instance with the data needed to serialize the target object

GetType()()
Gets the Type of the current instance.
(Inherited from Object.)
IsHStack
Sets or gets a property that allows the Legend items to stack horizontally in addition to the vertical stacking

IsReverse
Gets or sets a value that determines if the legend entries are displayed in normal order (matching the order in the CurveList, or in reverse order.

IsShowLegendSymbols
Gets or sets a value that determines whether the line and symbol keys will be displayed in the legend.

IsVisible
Gets or sets a property that shows or hides the Legend entirely

Location
Gets or sets the Location data for the Legend. This property is only applicable if Position is set to Float.

MemberwiseClone()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Position
Sets or gets the location of the Legend on the GraphPane using the LegendPos enum type

Rect
Get the bounding rectangle for the Legend in screen coordinates

static memberschema
Current schema value that defines the version of the serialized file

ICloneable..::Clone()()
Implement the ICloneable interface in a typesafe manner by just calling the typed version of Clone()()

ToString()()
Returns a String that represents the current Object.
(Inherited from Object.)
Inheritance Hierarchy
Object
Legend

Assembly: ZedGraph (Module: ZedGraph) Version: 5.1.0.621