Gets or sets the field's border style.

Namespace:  C1.C1Report
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
[DefaultValueAttribute(BorderStyleEnum.Transparent)]
public BorderStyleEnum BorderStyle { get; set; }
Visual Basic
<DefaultValueAttribute(BorderStyleEnum.Transparent)> _
Public Property BorderStyle As BorderStyleEnum
	Get
	Set

Remarks

To draw a border around a field, set the following properties:

BorderColor()()()() to define the border color.

BorderStyle()()()() to define the border style (e.g., solid, dashed, etc.).

LineWidth()()()() to define the border width (in twips).

When you create fields with text and a border, text will be positioned very close to the border. You can control the distance between the text and the border using the MarginLeft, MarginRight, MarginTop, and MarginBottom properties.

To draw lines, see the LineSlant property.

The default value for this property is BorderStyleEnum.Transparent.

Examples

The following code sets the BorderColor property to Red and the BorderStyle to Solid:

Copy CodeVisual Basic
With c1r.Fields(0)
    .BorderColor = Color.Red
    .BorderStyle = C1.C1Report.BorderStyleEnum.Solid
End With
Copy CodeC#
this.c1r.Fields[0].BorderColor = Color.Red;
this.c1r.Fields[0].BorderStyle = C1.C1Report.BorderStyleEnum.Solid;

See Also