Class GapLabel
Class that handles the data associated with a text title and its associated font properties. Inherits from Label, and adds the Gap property for use by the Axis and PaneBase objects.
Inherited Members
Namespace: ZedGraph
Assembly: ZedGraph.dll
Syntax
[Serializable]
public class GapLabel : Label, ICloneable, ISerializableConstructors
| Improve this Doc View SourceGapLabel(SerializationInfo, StreamingContext)
Constructor for deserializing objects
Declaration
protected GapLabel(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 | 
GapLabel(String, String, Single, Color, Boolean, Boolean, Boolean)
Constructor to build a GapLabel from the text and the associated font properties.
Declaration
public GapLabel(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 | 
GapLabel(GapLabel)
Copy constructor
Declaration
public GapLabel(GapLabel rhs)Parameters
| Type | Name | Description | 
|---|---|---|
| GapLabel | rhs | the AxisLabel instance to be copied. | 
Fields
| Improve this Doc View Sourceschema2
Current schema value that defines the version of the serialized file
Declaration
public const int schema2 = 10Field Value
| Type | Description | 
|---|---|
| Int32 | 
Properties
| Improve this Doc View SourceGap
Declaration
public float Gap { get; set; }Property Value
| Type | Description | 
|---|---|
| Single | 
Remarks
This value is expressed as a fraction of the character height for the GapLabel.
Methods
| Improve this Doc View SourceClone()
Typesafe, deep-copy clone method.
Declaration
public GapLabel Clone()Returns
| Type | Description | 
|---|---|
| GapLabel | 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
| Improve this Doc View SourceGetScaledGap(Single)
Calculate the size of the Gap based on the FontSpec
height, in pixel units and scaled according to 
Declaration
public float GetScaledGap(float scaleFactor)Parameters
| Type | Name | Description | 
|---|---|---|
| Single | scaleFactor | The scaling factor to be applied | 
Returns
| Type | Description | 
|---|---|
| Single | 
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 |