Class Border
Represents a border around the report object.
Inheritance
Inherited Members
Namespace: FastReport
Assembly: FastReport.OpenSource.dll
Syntax
public class Border
Remarks
Border consists of four lines. Each line has own color, style and width. Lines are accessible through LeftLine, RightLine, TopLine, BottomLine properties.
To turn on and off the lines, use the Lines property. To set the same color, style or width for each line, use Color, Style, Width properties of the Border.
Constructors
Border()
Initializes a new instance of the Border class with default settings.
Declaration
public Border()
Properties
BottomLine
Gets or sets the bottom line of the border.
Declaration
public BorderLine BottomLine { get; set; }
Property Value
Type | Description |
---|---|
BorderLine |
Color
Gets or sets a color of the border.
Declaration
public Color Color { get; set; }
Property Value
Type | Description |
---|---|
Color |
Remarks
This property actually returns a color of the LeftLine. When you assign a value to this property, the value will be set to each border line.
LeftLine
Gets or sets the left line of the border.
Declaration
public BorderLine LeftLine { get; set; }
Property Value
Type | Description |
---|---|
BorderLine |
Lines
Gets or sets a visible lines of a border.
Declaration
public BorderLines Lines { get; set; }
Property Value
Type | Description |
---|---|
BorderLines |
RightLine
Gets or sets the right line of the border.
Declaration
public BorderLine RightLine { get; set; }
Property Value
Type | Description |
---|---|
BorderLine |
Shadow
Gets or sets a value determines whether to draw a shadow.
Declaration
public bool Shadow { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ShadowColor
Gets or sets a shadow color.
Declaration
public Color ShadowColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
ShadowWidth
Gets or sets a shadow width, in pixels.
Declaration
public float ShadowWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
SimpleBorder
Gets or sets a value determines that Border must serialize only one line.
Declaration
public bool SimpleBorder { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
This property is for internal use only.
Style
Gets or sets a style of the border.
Declaration
public LineStyle Style { get; set; }
Property Value
Type | Description |
---|---|
LineStyle |
Remarks
This property actually returns a style of the LeftLine. When you assign a value to this property, the value will be set to each border line.
TopLine
Gets or sets the top line of the border.
Declaration
public BorderLine TopLine { get; set; }
Property Value
Type | Description |
---|---|
BorderLine |
Width
Gets or sets a width of the border, in pixels.
Declaration
public float Width { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Remarks
This property actually returns a width of the LeftLine. When you assign a value to this property, the value will be set to each border line.
Methods
Clone()
Creates the exact copy of this Border.
Declaration
public Border Clone()
Returns
Type | Description |
---|---|
Border | A copy of this border. |
Draw(FRPaintEventArgs, RectangleF)
Draw the border using draw event arguments and specified bounding rectangle.
Declaration
public void Draw(FRPaintEventArgs e, RectangleF rect)
Parameters
Type | Name | Description |
---|---|---|
FRPaintEventArgs | e | Draw event arguments. |
RectangleF | rect | Bounding rectangle. |
Remarks
This method is for internal use only.
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
Serialize(FRWriter, String, Border)
Serializes the border.
Declaration
public void Serialize(FRWriter writer, string prefix, Border c)
Parameters
Type | Name | Description |
---|---|---|
FRWriter | writer | Writer object. |
System.String | prefix | Border property name. |
Border | c | Another Border to compare with. |
Remarks
This method is for internal use only.