Search Results for

    Show / Hide Table of Contents

    Class Label

    Class that handles the data associated with text title and its associated font properties

    Inheritance
    Object
    Label
    GapLabel
    Implements
    ICloneable
    ISerializable
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: ZedGraph
    Assembly: ZedGraph.dll
    Syntax
    [Serializable]
    public class Label : ICloneable, ISerializable

    Constructors

    | Improve this Doc View Source

    Label(SerializationInfo, StreamingContext)

    Constructor for deserializing objects

    Declaration
    protected Label(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

    | Improve this Doc View Source

    Label(String, String, Single, Color, Boolean, Boolean, Boolean)

    Constructor to build an AxisLabel from the text and the associated font properties.

    Declaration
    public Label(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

    | Improve this Doc View Source

    Label(String, FontSpec)

    Constructor that builds a Label from a text String and a FontSpec instance.

    Declaration
    public Label(string text, FontSpec fontSpec)
    Parameters
    Type Name Description
    String text
    FontSpec fontSpec
    | Improve this Doc View Source

    Label(Label)

    Copy constructor

    Declaration
    public Label(Label rhs)
    Parameters
    Type Name Description
    Label rhs

    the Label instance to be copied.

    Fields

    | Improve this Doc View Source

    schema

    Current schema value that defines the version of the serialized file

    Declaration
    public const int schema = 10
    Field Value
    Type Description
    Int32

    Properties

    | Improve this Doc View Source

    FontSpec

    A FontSpec instance representing the font properties for the displayed text.

    Declaration
    public FontSpec FontSpec { get; set; }
    Property Value
    Type Description
    FontSpec
    | Improve this Doc View Source

    IsVisible

    Gets or sets a boolean value that determines whether or not this label will be displayed.

    Declaration
    public bool IsVisible { get; set; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    Text

    The String text to be displayed

    Declaration
    public string Text { get; set; }
    Property Value
    Type Description
    String

    Methods

    | Improve this Doc View Source

    Clone()

    Typesafe, deep-copy clone method.

    Declaration
    public Label Clone()
    Returns
    Type Description
    Label

    A new, independent copy of this class

    | Improve this Doc View Source

    GetObjectData(SerializationInfo, StreamingContext)

    Populates a SerializationInfo instance with the data needed to serialize the target object

    Declaration
    [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
    public virtual 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

    Explicit Interface Implementations

    | Improve this Doc View Source

    ICloneable.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

    Implements

    System.ICloneable
    System.Runtime.Serialization.ISerializable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX