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.
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 |
---|---|---|
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. |
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. |
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 |
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 |
---|---|
Int32 |
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 |
---|---|
Single |
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 (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. |
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
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 |