xtrareports-devexpress-dot-xtrareports-dot-ui-970f0527.md
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
[DefaultBindableProperty(null)]
public class XRControl :
Component,
IEnumerable,
IBrickOwner,
IScriptable,
IXtraSupportDeserializeCollectionItem,
IXtraSupportCreateContentPropertyValue,
IXtraSerializable
<DefaultBindableProperty(Nothing)>
Public Class XRControl
Inherits Component
Implements IEnumerable,
IBrickOwner,
IScriptable,
IXtraSupportDeserializeCollectionItem,
IXtraSupportCreateContentPropertyValue,
IXtraSerializable
The following members return XRControl objects:
Show 23 links
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.
The following example demonstrates how to create an XRControl object and set some of its properties at runtime.
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;
}
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
Show 84 items
Object MarshalByRefObject Component XRControl Band
See Also