The requested page is not available for the requested platform. You are viewing the content for Default platform.

XRLine Class

A Line control.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.2.dll

Declaration

[ToolboxTabName("DX.18.2: Report Controls")]
[XRDesigner("DevExpress.XtraReports.Design.XRLineDesigner,DevExpress.XtraReports.v18.2.Extensions, Version=18.2.99.0, Culture=neutral, PublicKeyToken=c38a27d2243c2672")]
[ToolboxBitmap(typeof(XRLine))]
[XRToolboxSubcategory(1, 0)]
[DefaultBindableProperty(null)]
[ToolboxBitmap24("DevExpress.XtraReports.Images.Toolbox24x24.XRLine.png,DevExpress.XtraReports.v18.2.Extensions, Version=18.2.99.0, Culture=neutral, PublicKeyToken=c38a27d2243c2672")]
[ToolboxBitmap32("DevExpress.XtraReports.Images.Toolbox32x32.XRLine.png,DevExpress.XtraReports.v18.2.Extensions, Version=18.2.99.0, Culture=neutral, PublicKeyToken=c38a27d2243c2672")]
[ToolboxSvgImage("DevExpress.XtraReports.SvgImages.Controls.XRLine.svg,DevExpress.XtraReports.v18.2.Extensions, Version=18.2.99.0, Culture=neutral, PublicKeyToken=c38a27d2243c2672")]
public class XRLine :
    XRControl
<ToolboxTabName("DX.18.2: Report Controls")>
<XRDesigner("DevExpress.XtraReports.Design.XRLineDesigner,DevExpress.XtraReports.v18.2.Extensions, Version=18.2.99.0, Culture=neutral, PublicKeyToken=c38a27d2243c2672")>
<ToolboxBitmap(GetType(XRLine))>
<XRToolboxSubcategory(1, 0)>
<DefaultBindableProperty(Nothing)>
<ToolboxBitmap24("DevExpress.XtraReports.Images.Toolbox24x24.XRLine.png,DevExpress.XtraReports.v18.2.Extensions, Version=18.2.99.0, Culture=neutral, PublicKeyToken=c38a27d2243c2672")>
<ToolboxBitmap32("DevExpress.XtraReports.Images.Toolbox32x32.XRLine.png,DevExpress.XtraReports.v18.2.Extensions, Version=18.2.99.0, Culture=neutral, PublicKeyToken=c38a27d2243c2672")>
<ToolboxSvgImage("DevExpress.XtraReports.SvgImages.Controls.XRLine.svg,DevExpress.XtraReports.v18.2.Extensions, Version=18.2.99.0, Culture=neutral, PublicKeyToken=c38a27d2243c2672")>
Public Class XRLine
    Inherits XRControl
    Implements

Remarks

The XRLine control is used for drawing lines in reports. These lines can only be drawn within a specific band. To draw a line across multiple bands, use XRCrossBandLine.

To learn more, see the Adding Controls to a Report topic.

Examples

This example demonstrates how to create an XRLine object and set some of its properties.

using System.Drawing;
using System.Drawing.Drawing2D;
using DevExpress.XtraReports.UI;
// ...

public XRLine CreateXRLine() {
   // Create an XRLine object.
   XRLine line = new XRLine();

   // Set its color.
   line.ForeColor = Color.Red;

   // Set its width.
   line.LineWidth = 0.5F;

   // Set its style.
   line.LineStyle = DashStyle.DashDot;

   // Set its size.
   line.SizeF = new SizeF(300F, 100F);

   // Set its direction.
   line.LineDirection = LineDirection.BackSlant;

   return line;
}

Implements

DevExpress.XtraReports.Serialization.IXRSerializable
DevExpress.Utils.Serializing.Helpers.IXtraSupportDeserializeCollectionItem
DevExpress.Utils.Serializing.IXtraSerializable
See Also