Class Margin
Class that handles that stores the margin properties for the GraphPane
Inherited Members
Namespace: ZedGraph
Assembly: ZedGraph.dll
Syntax
[Serializable]
public class Margin : ICloneable, ISerializable
Constructors
| Improve this Doc View SourceMargin()
Constructor to build a Margin from the default values.
Declaration
public Margin()
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 |
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) |
_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) |
_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) |
_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) |
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 SourceAll
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
| Improve this Doc View SourceBottom
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
| Improve this Doc View SourceLeft
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
| Improve this Doc View SourceRight
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
| Improve this Doc View SourceTop
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
Methods
| Improve this Doc View SourceClone()
Typesafe, deep-copy clone method.
Declaration
public Margin Clone()
Returns
Type | Description |
---|---|
Margin | 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 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 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 |