Back to Devexpress

XRControl Members

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrcontrol-dot-underscore-members.md

latest28.5 KB
Original Source

XRControl Members

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

Constructors

NameDescription
XRControl()Initializes a new instance of the XRControl class with the default settings.

Properties

NameDescription
AccessibleDescriptionBindable. Gets or sets the description of a control used by assistive technologies.
ActionSpecifies the action assigned to the control.
AnchorHorizontalSpecifies the horizontal anchoring type of a report control.
AnchorVerticalSpecifies the vertical anchoring style of a report control.
BackColorGets or sets a control’s background color.
BandProvides access to the owner band, in which the current control is situated.
BookmarkBindable. Gets or sets the text of a bookmark for this control.
BookmarkParentGets or sets the report control whose bookmark is the parent of the current bookmark.
BorderColorGets or sets the control’s border color.
BorderDashStyleSpecifies the dash style for the control’s border.
BordersSpecifies a set of borders (top, right, bottom, left) that should be visible for the control.
BorderWidthSpecifies the width of cell borders in pixels, as a floating point value.
BottomFGets the Y-coordinate of the control’s bottom edge (measured in report units).
BoundsFSpecifies the location and size of a report element, according to the system of measurement selected for the report.
CanGrowGets or sets a value indicating whether the control’s height can grow in order to display the content in its entirety.
CanHaveChildrenGets a value indicating whether the control can contain other controls.
CanPublishOptionsSpecifies report control visibility on printouts and in documents exported to specific formats.
CanRaiseEvents protectedGets a value indicating whether the component can raise an event. Inherited from Component.
CanShrinkGets or sets a value that determines whether the height of a control can decrease if its content does not completely fill the control.
ContainerGets the IContainer that contains the Component. Inherited from Component.
ControlsGets the collection of XRControl objects or their descendants that are contained in this control.
DataBindingsProvides access to the collection of a control’s bindings.
DesignMode protectedGets a value that indicates whether the Component is currently in design mode. Inherited from Component.
EvenStyleNameGets or sets the style applied to the control when it displays an even record from the bound data source.
Events protectedGets the list of event handlers that are attached to this Component. Inherited from Component.
ExpressionBindingsProvides access to a control’s collection of expression bindings.
FontGets or sets the control’s font.
ForeColorGets or sets the control’s foreground color.
FormattingRulesProvides access to a collection of formatting rules applied to this control.
HasChildrenGets a value indicating whether the control contains other XRControl objects.
HeightFSpecifies the control’s height (measured in report units).
IndexGets the zero-based index of this control in its parent’s collection of controls.
IsDisposedFor internal use. Gets a value indicating whether the control has been disposed of.
IsSingleChildChecks whether the report element (control or band) is a single child of its parent.
KeepTogetherSpecifies whether a control can be split across pages.
LeftFSpecifies the X-coordinate of the control’s left edge (measured in report units).
LocationFSpecifies the floating-point representation of the coordinates of the control’s upper-left corner.
LocationFloatFor internal use. Supports serialization of the XRControl.LocationF property.
LockedInUserDesignerGets or sets a value that specifies whether this control can be changed by an end-user in the End-User Designer.
NameGets or sets a name of the control.
NavigateUrlBindable. Specifies the URL to navigate to when a control is clicked.
OddStyleNameGets or sets the style applied to the control when it displays an odd record from the bound data source.
PaddingGets or sets the control’s padding values (measured in report units).
ParentSpecifies the parent object that contains the current control.
ReportProvides access to the report that contains the control.
RightFGets the X-coordinate of the control’s right edge (measured in report units).
RootReportProvides access to the report to which the control belongs.
ScriptsProvides access to an object that contains XRControl-specific scripts to handle its events in the End-User Report Designer.
SiteGets or sets the ISite of the Component. Inherited from Component.
SizeFGets or sets the size of the control.
SnapLineMarginSpecifies the control’s margins that are maintained when the control is aligned using snap lines.
StyleNameGets or sets the name of the style, which is applied to the current control.
StylePriorityAllows you to specify properties whose values for an individual control have priority over the same properties specified for the style assigned to the control.
StylesGets a set of styles for the control.
TagBindable. Gets or sets the object that contains data about this control.
TargetSpecifies the target window or frame in which to display the linked Web page’s content, when the control is clicked.
TextBindable. Specifies the control’s text.
TextAlignmentSpecifies the positioning of text within a control.
TopFGets or sets the Y-coordinate of the control’s top edge (measured in report units).
VisibleGets or sets a value that specifies whether the report control is displayed in the document.
WidthFSpecifies the control’s width (measured in report units).
WordWrapIndicates whether a control automatically wraps words to the beginning of the next line when necessary.
XlsxFormatStringSpecifies the native Excel format to be imported to the control’s content after the report is exported to an Excel file (XLS or XLSX).

Methods

NameDescription
AllControls<T>()Returns a collection that contains all controls found within XRControl (within a report).
BringToFront()Brings the control to the front of the z-order.
CreateObjRef(Type)Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. Inherited from MarshalByRefObject.
Dispose()Releases all resources used by the Component. Inherited from Component.
Equals(Object, Object) staticDetermines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object)Determines whether the specified object is equal to the current object. Inherited from Object.
FindControl(String, Boolean)Finds the control that has the specified name in the XRControl.Controls collection.
GetEffectiveBackColor()Returns the color actually used as the control’s background color.
GetEffectiveBorderColor()Returns the color actually used as the control’s border color.
GetEffectiveBorderDashStyle()Returns the border dash style that is actually used by the control.
GetEffectiveBorders()Returns the borders settings actually used as the control’s borders settings.
GetEffectiveBorderWidth()Returns the border width settings actually used as the control’s current settings.
GetEffectiveFont()Returns the font actually used as the control’s font.
GetEffectiveForeColor()Returns the color actually used as the control’s foreground color.
GetEffectivePadding()Returns the padding values actually used as the control’s padding.
GetEffectiveStyle()Returns the actual visual style of a control taking into account all formatting rules and odd/even styles applied to the control.
GetEffectiveTextAlignment()Returns the text alignment actually used as the control’s text alignment.
GetHashCode()Serves as the default hash function. Inherited from Object.
GetLifetimeService()Retrieves the current lifetime service object that controls the lifetime policy for this instance. Inherited from MarshalByRefObject.
GetService(Type) protectedReturns an object that represents a service provided by the Component or by its Container. Inherited from Component.
GetType()Gets the Type of the current instance. Inherited from Object.
InitializeLifetimeService()Obtains a lifetime service object to control the lifetime policy for this instance. Inherited from MarshalByRefObject.
MemberwiseClone() protectedCreates a shallow copy of the current Object. Inherited from Object.
MemberwiseClone(Boolean) protectedCreates a shallow copy of the current MarshalByRefObject object. Inherited from MarshalByRefObject.
PerformLayout()Forces the control to apply layout logic to itself and all its child controls.
ReferenceEquals(Object, Object) staticDetermines whether the specified Object instances are the same instance. Inherited from Object.
RemoveInvalidBindings(Predicate<XRBinding>)Removes inappropriate bindings assigned to the XRControl‘s properties.
ResetBackColor()Resets the XRControl.BackColor property value, so that it is no longer stored in the current control and is obtained from its parent instead.
ResetBorderColor()Resets the XRControl.BorderColor property value, so that it is no longer stored in the current control and is obtained from its parent instead.
ResetBorderDashStyle()Resets the XRControl.BorderDashStyle property to en empty value.
ResetBorders()Resets the XRControl.Borders property value, so that it is no longer stored in the current control and is obtained from its parent instead.
ResetBorderWidth()Resets the XRControl.BorderWidth property value, so that it is no longer stored in the current control and is obtained from its parent instead.
ResetFont()Resets the XRControl.Font property value, so that it is no longer stored in the current control and is obtained from its parent instead.
ResetForeColor()Resets the XRControl.ForeColor property value, so that it is no longer stored in the current control and is obtained from its parent instead.
ResetPadding()Resets the XRControl.Padding property value, so that it is no longer stored in the current control and is obtained from its parent instead.
ResetTextAlignment()Resets the XRControl.TextAlignment property value, so that it is no longer stored in the current control and is obtained from its parent instead.
ResumeLayout()Resumes normal layout logic for the control.
SendToBack()Sends the control to the back of the z-order.
SuspendLayout()Temporarily suspends the layout logic for the control.
ToImage()Returns a graphical representation of a control.
ToImage(DXTextRenderingHint)Returns the graphical representation of a control created using the specified text rendering mode.
ToString()Returns a String containing the name of the Component, if any. This method should not be overridden. Inherited from Component.

Events

NameDescription
AfterPrintOccurs after an XRControl object is displayed in the report.
BeforePrintOccurs before an XRControl object creates its image in a report being generated.
DisposedOccurs when the component is disposed by a call to the Dispose() method. Inherited from Component.
DrawOccurs when an XRControl object is drawn or redrawn in a report’s Print Preview.
EvaluateBindingOccurs after a data-bound XRControl object obtains data from its data source.
HtmlItemCreatedOccurs when a new item used for a Web representation of the control is created.
LocationChangedOccurs when the value of the XRControl.LocationF property is changed.
ParentChangedOccurs when the XRControl instance’s parent is changed.
PreviewClickOccurs when the mouse button is clicked while the cursor is hovering over one of the bricks created by the XRControl for its representation in the report preview.
PreviewDoubleClickOccurs when the left mouse button is double-clicked while the cursor is hovering over one of the bricks created for the control‘s representation in the report preview.
PreviewMouseDownOccurs when an end-user presses the mouse button while the mouse pointer is hovering over one of the bricks created for the control‘s representation in the report preview.
PreviewMouseMoveOccurs when the mouse cursor moves over the control during the report’s preview.
PreviewMouseUpOccurs when an end-user releases the left mouse button while the mouse pointer is hovering over one of the bricks created for the control‘s representation in the report preview.
PrintOnPageOccurs when the representation of a control is printed on the current page of the report.
SizeChangedOccurs when the value of the XRControl.SizeF property is changed.
TextChangedOccurs when the value of the XRControl.Text property is changed.

See Also

XRControl Class

DevExpress.XtraReports.UI Namespace