Class AxisLabel
Class that handles the data associated with text title and its associated font properties. Inherits from Label, and adds IsOmitMag and IsTitleAtCross properties, which are specifically associated with the Axis Title.
Inherited Members
Namespace: ZedGraph
Assembly: ZedGraph.dll
Syntax
[Serializable]
public class AxisLabel : GapLabel, ICloneable, ISerializable
Constructors
| Improve this Doc View SourceAxisLabel(SerializationInfo, StreamingContext)
Constructor for deserializing objects
Declaration
protected AxisLabel(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | A SerializationInfo instance that defines the serialized data |
StreamingContext | context | A StreamingContext instance that contains the serialized data |
AxisLabel(String, String, Single, Color, Boolean, Boolean, Boolean)
Constructor to build an AxisLabel from the text and the associated font properties.
Declaration
public AxisLabel(string text, string fontFamily, float fontSize, Color color, bool isBold, bool isItalic, bool isUnderline)
Parameters
Type | Name | Description |
---|---|---|
String | text | The String representing the text to be displayed |
String | fontFamily | The String font family name |
Single | fontSize | The size of the font in points and scaled according to the CalcScaleFactor() logic. |
Color | color | The Color instance representing the color of the font |
Boolean | isBold | true for a bold font face |
Boolean | isItalic | true for an italic font face |
Boolean | isUnderline | true for an underline font face |
AxisLabel(AxisLabel)
Copy constructor
Declaration
public AxisLabel(AxisLabel rhs)
Parameters
Type | Name | Description |
---|---|---|
AxisLabel | rhs | the AxisLabel instance to be copied. |
Fields
| Improve this Doc View Sourceschema3
Current schema value that defines the version of the serialized file
Declaration
public const int schema3 = 10
Field Value
Type | Description |
---|---|
Int32 |
Properties
| Improve this Doc View SourceIsOmitMag
Gets or sets the property that controls whether or not the magnitude factor (power of 10) for this scale will be included in the label.
Declaration
public bool IsOmitMag { get; set; }
Property Value
Type | Description |
---|---|
Boolean | true to show the magnitude value, false to hide it |
Remarks
For large scale values, a "magnitude" value (power of 10) is automatically used for scaling the graph. This magnitude value is automatically appended to the end of the Axis Title (e.g., "(10^4)") to indicate that a magnitude is in use. This property controls whether or not the magnitude is included in the title. Note that it only affects the axis title; a magnitude value may still be used even if it is not shown in the title.
See Also
| Improve this Doc View SourceIsTitleAtCross
Gets or sets a value that determines whether the Axis title is located at the Cross value or at the normal position (outside the Rect).
Declaration
public bool IsTitleAtCross { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
This value only applies if CrossAuto is false.
Methods
| Improve this Doc View SourceClone()
Typesafe, deep-copy clone method.
Declaration
public AxisLabel Clone()
Returns
Type | Description |
---|---|
AxisLabel | A new, independent copy of this class |
GetObjectData(SerializationInfo, StreamingContext)
Populates a SerializationInfo instance with the data needed to serialize the target object
Declaration
[SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | A SerializationInfo instance that defines the serialized data |
StreamingContext | context | A StreamingContext instance that contains the serialized data |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceICloneable.Clone()
Implement the ICloneable interface in a typesafe manner by just calling the typed version of Clone()
Declaration
object ICloneable.Clone()
Returns
Type | Description |
---|---|
Object | A deep copy of this object |