Search Results for

    Show / Hide Table of Contents

    Class Border

    A class that encapsulates Border (frame) properties for an object. The Border class is used in a variety of ZedGraph objects to handle the drawing of the Border around the object.

    Inheritance
    Object
    LineBase
    Border
    Implements
    ISerializable
    ICloneable
    Inherited Members
    LineBase.Color
    LineBase.Style
    LineBase.DashOn
    LineBase.DashOff
    LineBase.Width
    LineBase.IsVisible
    LineBase.IsAntiAlias
    LineBase.GradientFill
    LineBase.schema0
    LineBase.GetPen(PaneBase, Single)
    LineBase.GetPen(PaneBase, Single, PointPair)
    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 Border : LineBase, ISerializable, ICloneable

    Constructors

    | Improve this Doc View Source

    Border()

    The default constructor. Initialized to default values.

    Declaration
    public Border()
    | Improve this Doc View Source

    Border(Boolean, Color, Single)

    Constructor that specifies the visibility, color and penWidth of the Border.

    Declaration
    public Border(bool isVisible, Color color, float width)
    Parameters
    Type Name Description
    Boolean isVisible

    Determines whether or not the Border will be drawn.

    Color color

    The color of the Border

    Single width

    The width, in points (1/72 inch), for the Border.

    | Improve this Doc View Source

    Border(Color, Single)

    Constructor that specifies the color and penWidth of the Border.

    Declaration
    public Border(Color color, float width)
    Parameters
    Type Name Description
    Color color

    The color of the Border

    Single width

    The width, in points (1/72 inch), for the Border.

    | Improve this Doc View Source

    Border(SerializationInfo, StreamingContext)

    Constructor for deserializing objects

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

    Border(Border)

    The Copy Constructor

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

    The Border object from which to copy

    Fields

    | Improve this Doc View Source

    schema

    Current schema value that defines the version of the serialized file

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

    Properties

    | Improve this Doc View Source

    InflateFactor

    Gets or sets the amount of inflation to be done on the rectangle before rendering.

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

    This allows the border to be inset or outset relative to the actual rectangle area.

    Methods

    | Improve this Doc View Source

    Clone()

    Typesafe, deep-copy clone method.

    Declaration
    public Border Clone()
    Returns
    Type Description
    Border

    A new, independent copy of this class

    | Improve this Doc View Source

    Draw(Graphics, PaneBase, Single, RectangleF)

    Draw the specified Border (RectangleF) using the properties of this Border object.

    Declaration
    public void Draw(Graphics g, PaneBase pane, float scaleFactor, RectangleF rect)
    Parameters
    Type Name Description
    Graphics g

    A graphic device object to be drawn into. This is normally e.Graphics from the PaintEventArgs argument to the Paint() method.

    PaneBase pane

    A reference to the PaneBase object that is the parent or owner of this object.

    Single scaleFactor

    The scaling factor for the features of the graph based on the BaseDimension. This scaling factor is calculated by the CalcScaleFactor() method. The scale factor represents a linear multiple to be applied to font sizes, symbol sizes, etc.

    RectangleF rect

    A RectangleF struct to be drawn.

    | 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 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
    LineBase.GetObjectData(SerializationInfo, StreamingContext)

    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.Runtime.Serialization.ISerializable
    System.ICloneable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX