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.
Implements
Inherited Members
Namespace: ZedGraph
Assembly: ZedGraph.dll
Syntax
[Serializable]
public class Border : LineBase, ISerializable, ICloneable
Constructors
| Improve this Doc View SourceBorder()
The default constructor. Initialized to default values.
Declaration
public Border()
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 |
---|---|---|
System. |
isVisible | Determines whether or not the Border will be drawn. |
System. |
color | The color of the Border |
System. |
width | The width, in points (1/72 inch), for the Border. |
Border(Color, Single)
Constructor that specifies the color and penWidth of the Border.
Declaration
public Border(Color color, float width)
Parameters
Type | Name | Description |
---|---|---|
System. |
color | The color of the Border |
System. |
width | The width, in points (1/72 inch), for the Border. |
Border(SerializationInfo, StreamingContext)
Constructor for deserializing objects
Declaration
protected Border(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System. |
info | A System. |
System. |
context | A System. |
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 Sourceschema
Current schema value that defines the version of the serialized file
Declaration
public const int schema = 11
Field Value
Type | Description |
---|---|
System. |
Properties
| Improve this Doc View SourceInflateFactor
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 |
---|---|
System. |
Remarks
This allows the border to be inset or outset relative to the actual rectangle area.
Methods
| Improve this Doc View SourceClone()
Typesafe, deep-copy clone method.
Declaration
public Border Clone()
Returns
Type | Description |
---|---|
Border | A new, independent copy of this class |
Draw(Graphics, PaneBase, Single, RectangleF)
Draw the specified Border (System.
Declaration
public void Draw(Graphics g, PaneBase pane, float scaleFactor, RectangleF rect)
Parameters
Type | Name | Description |
---|---|---|
System. |
g | A graphic device object to be drawn into. This is normally e.Graphics from the PaintEventArgs argument to the Paint() method. |
Pane |
pane | A reference to the Pane |
System. |
scaleFactor | The scaling factor for the features of the graph based on the Base |
System. |
rect | A System. |
GetObjectData(SerializationInfo, StreamingContext)
Populates a System.
Declaration
[SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System. |
info | A System. |
System. |
context | A System. |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceICloneable.Clone()
Implement the System.
Declaration
object ICloneable.Clone()
Returns
Type | Description |
---|---|
System. |
A deep copy of this object |