Search Results for

    Show / Hide Table of Contents

    Class Margin

    Class that handles that stores the margin properties for the GraphPane

    Inheritance
    Object
    Margin
    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 Margin : ICloneable, ISerializable

    Constructors

    | Improve this Doc View Source

    Margin()

    Constructor to build a Margin from the default values.

    Declaration
    public Margin()
    | Improve this Doc View Source

    Margin(SerializationInfo, StreamingContext)

    Constructor for deserializing objects

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

    Margin(Margin)

    Copy constructor

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

    the Margin instance to be copied.

    Fields

    | Improve this Doc View Source

    _bottom

    Private fields that store the size of the margin around the edge of the pane which will be kept blank. Use the public properties Left, Right, Top, Bottom to access these values.

    Declaration
    [CLSCompliant(false)]
    protected float _bottom
    Field Value
    Type Description
    Single

    Units are points (1/72 inch)

    | Improve this Doc View Source

    _left

    Private fields that store the size of the margin around the edge of the pane which will be kept blank. Use the public properties Left, Right, Top, Bottom to access these values.

    Declaration
    [CLSCompliant(false)]
    protected float _left
    Field Value
    Type Description
    Single

    Units are points (1/72 inch)

    | Improve this Doc View Source

    _right

    Private fields that store the size of the margin around the edge of the pane which will be kept blank. Use the public properties Left, Right, Top, Bottom to access these values.

    Declaration
    [CLSCompliant(false)]
    protected float _right
    Field Value
    Type Description
    Single

    Units are points (1/72 inch)

    | Improve this Doc View Source

    _top

    Private fields that store the size of the margin around the edge of the pane which will be kept blank. Use the public properties Left, Right, Top, Bottom to access these values.

    Declaration
    [CLSCompliant(false)]
    protected float _top
    Field Value
    Type Description
    Single

    Units are points (1/72 inch)

    | 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

    All

    Concurrently sets all outer margin values to a single value.

    Declaration
    public float All { set; }
    Property Value
    Type Description
    Single

    This value is in units of points (1/72 inch), and is scaled linearly with the graph size.

    See Also
    IsFontsScaled
    Bottom
    Left
    Right
    Top
    | Improve this Doc View Source

    Bottom

    Gets or sets a float value that determines the margin area between the bottom edge of the Rect rectangle and the features of the graph.

    Declaration
    public float Bottom { get; set; }
    Property Value
    Type Description
    Single

    This value is in units of points (1/72 inch), and is scaled linearly with the graph size.

    See Also
    Bottom
    IsFontsScaled
    Left
    Right
    Top
    | Improve this Doc View Source

    Left

    Gets or sets a float value that determines the margin area between the left edge of the Rect rectangle and the features of the graph.

    Declaration
    public float Left { get; set; }
    Property Value
    Type Description
    Single

    This value is in units of points (1/72 inch), and is scaled linearly with the graph size.

    See Also
    Left
    IsFontsScaled
    Right
    Top
    Bottom
    | Improve this Doc View Source

    Right

    Gets or sets a float value that determines the margin area between the right edge of the Rect rectangle and the features of the graph.

    Declaration
    public float Right { get; set; }
    Property Value
    Type Description
    Single

    This value is in units of points (1/72 inch), and is scaled linearly with the graph size.

    See Also
    Right
    IsFontsScaled
    Left
    Top
    Bottom
    | Improve this Doc View Source

    Top

    Gets or sets a float value that determines the margin area between the top edge of the Rect rectangle and the features of the graph.

    Declaration
    public float Top { get; set; }
    Property Value
    Type Description
    Single

    This value is in units of points (1/72 inch), and is scaled linearly with the graph size.

    See Also
    Top
    IsFontsScaled
    Left
    Right
    Bottom

    Methods

    | Improve this Doc View Source

    Clone()

    Typesafe, deep-copy clone method.

    Declaration
    public Margin Clone()
    Returns
    Type Description
    Margin

    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