Back to Devexpress

XRControl Class

xtrareports-devexpress-dot-xtrareports-dot-ui-970f0527.md

latest13.3 KB
Original Source

XRControl Class

The base class for all visual controls used for creating reports.

Namespace : DevExpress.XtraReports.UI

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
[DefaultBindableProperty(null)]
public class XRControl :
    Component,
    IEnumerable,
    IBrickOwner,
    IScriptable,
    IXtraSupportDeserializeCollectionItem,
    IXtraSupportCreateContentPropertyValue,
    IXtraSerializable
vb
<DefaultBindableProperty(Nothing)>
Public Class XRControl
    Inherits Component
    Implements IEnumerable,
               IBrickOwner,
               IScriptable,
               IXtraSupportDeserializeCollectionItem,
               IXtraSupportCreateContentPropertyValue,
               IXtraSerializable

The following members return XRControl objects:

Show 23 links

LibraryRelated API Members
DashboardCustomControlProviderBase.GetPrintableControl(CustomItemData, CustomItemExportInfo)
CustomExportEventArgs.GetPrintableControl(String)
CustomExportWebEventArgs.GetPrintableControl(String)
DashboardControl.GetPrintableControl(String)
DashboardDesigner.GetPrintableControl(String)
DashboardExporter.GetPrintableControl(Dashboard, String)
DashboardExporter.GetPrintableControl(Stream, String)
DashboardExporter.GetPrintableControl(String, String)
DashboardViewer.GetPrintableControl(String)
ICustomExportControlProvider.GetPrintableControl(CustomItemData, CustomItemExportInfo)
IDashboardControl.GetPrintableControl(String)
WebDashboardExporter.GetPrintableControl(String, String)
.NET Reporting ToolsDetailBand.DrillDownControl
DetailReportBand.DrillDownControl
FilterControlPropertiesEventArgs.Control
GroupHeaderBand.DrillDownControl
ReportInitializer.GetControl(String)
SubreportBase.BookmarkParent
XRControl.BookmarkParent
XRControl.FindControl(String, Boolean)
XRControl.Parent
XRControlCollection.Item[Int32]
XRControlCollection.Item[String]

Remarks

The XRControl class implements the most basic functionality required by the report controls - objects that display and handle information in reports.

To learn more about using controls in XtraReports, refer to Adding Controls to a Report and Report Class Hierarchy.

Example

The following example demonstrates how to create an XRControl object and set some of its properties at runtime.

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

public XRControl CreateMyXRControl() {
    // Create a control.
    XRControl xrControl1 = new XRControl();

    // Set its background color.
    xrControl1.BackColor = Color.LightGray;

    // Set its border color.
    xrControl1.BorderColor = Color.Blue;

    // Make its left and right borders visible.
    xrControl1.Borders = DevExpress.XtraPrinting.BorderSide.Left |
        DevExpress.XtraPrinting.BorderSide.Right;

    // Set its border width (in pixels).
    xrControl1.BorderWidth = 10;

    // Set its location and size (in hundredths of an inch).
    xrControl1.LocationF = new PointF(200F, 100F);
    xrControl1.SizeF = new SizeF(300F, 150F);

    return xrControl1;
}
vb
Imports System.Drawing
Imports DevExpress.XtraReports.UI
' ...

Private Function CreateMyXRControl()
    ' Create a control.
    Dim xrControl1 As New XRControl()

    ' Set its background color.
    xrControl1.BackColor = Color.LightGray

    ' Set its border color.
    xrControl1.BorderColor = Color.Blue

    ' Make its left and right borders visible.
    xrControl1.Borders = DevExpress.XtraPrinting.BorderSide.Left Or _ 
        DevExpress.XtraPrinting.BorderSide.Right

    ' Set its border width (in pixels).
    xrControl1.BorderWidth = 10

    ' Set its location and size (in hundredths of an inch).
    xrControl1.Location = New Point(200, 100)
    xrControl1.SizeF = new SizeF(300F,150F)

    Return xrControl1
End Function

Implements

IScriptable

Inheritance

Show 84 items

Object MarshalByRefObject Component XRControl Band

XRCrossTabCell

SubreportBase

WinControlContainer

XRChart

XRCrossBandControl

XRCrossTab

XRFieldEmbeddableControl

XRGauge

XRLine

XRPageBreak

XRPageInfo

XRPanel

XRPdfContent

XRPdfSignature

XRPictureBox

XRPivotGrid

XRShape

XRSparkline

XRTable

XRTableRow

BottomMarginBand

DetailReportBand

GroupBand

GroupFooterBand

GroupHeaderBand

XRRichTextBase

XRRichTextBox

XRTableOfContents

XRZipCode

DetailBand

VerticalBand

VerticalDetailBand

VerticalHeaderBand

VerticalTotalBand

XRBarCode

MarginBand

PageBand

ReportFooterBand

ResourceInfo

TextInfoControlBase

TimeCellsControlBase

XRDashboardGauge

XRDashboardItemPanel

XRGaugeDashboardItem

XRTextBox

PageFooterBand

PageHeaderBand

PrintableComponentContainer

ReportHeaderBand

SubBand

TopMarginBand

XRCharacterComb

XRCheckBox

XRCrossBandBox

XRCrossBandLine

XRLabel

XRRichText

XRRichTextBoxBase

XRSubreport

XRTableCell

XtraReport

XtraReportBase

CalendarControl

DataDependentControlBase

DayOfWeekHeaders

DayViewControlBase

DayViewTimeCells

DayViewTimeRuler

FormatTimeIntervalInfo

FullWeek

HorizontalDateHeaders

HorizontalResourceHeaders

HorizontalWeek

TimeIntervalInfo

TimeIntervalInfoBase

TimelineCells

TimelineScaleHeaders

VerticalResourceHeaders

XtraSchedulerReport

See Also

XRControl Members

Add Controls to a Report

Report Class Hierarchy

DevExpress.XtraReports.UI Namespace