ReportItem
Defines the base class for all report items that can be placed in a ReportSectionBase. Items of this type have a location and a size.
Definition
Namespace:Telerik.Reporting
Assembly:Telerik.Reporting.dll
Syntax:
public abstract class ReportItem : ReportItemBase, IToggleVisibilityTarget, IActionTarget
Inheritance: objectReportObjectReportItemBaseReportItem
Derived Classes:
Implements:
Inherited Members
Constructors
TODO: Add documentation.
public ReportItem()
Properties
Gets or sets the edges of the container to which a report is bound and determines how a report items is resized with its parent.
public AnchoringStyles Anchoring { get; set; }
A bitwise combination of the AnchoringStyles values. The default is None.
Use the Anchoring property to define how a report is automatically resized as its parent item is resized. Anchoring a report to its parent ensures that the anchored edges remain in the same position relative to the edges of the parent when the parent control is resized.
You can anchor a report item to one or more edges of its container. For example, if you have a DetailSection with a TextBox whose Anchoring property value is set to Top and Bottom, the TextBox is stretched to maintain the anchored distance to the top and bottom edges of the DetailSection as the Height of the DetailSection is increased.
Note:The Anchoring and Docking properties are mutually exclusive. Only one can be set at a time, and the last one set takes precedence.
Gets the distance, in Units, between the bottom edge of the report item and the top edge of its container's client area.
[Browsable(false)]
public Unit Bottom { get; }
An Unit representing the distance between the bottom edge of the report item and the top edge of its container's client area.
Gets or sets the size and location of the report item including its nonclient elements, in Units, relative to the parent report item.
[Browsable(false)]
public RectangleU Bounds { get; set; }
A RectangleU relative to the parent report item that represents the size and location of the report item including its nonclient elements.
The bounds of the report item include the nonclient elements such as borders and padding.
Gets the default size of the report item.
Gets or sets which report item borders are docked to its parent and determines how a report item is resized with its parent.
public DockingStyle Docking { get; set; }
One of the DockStyle values. The default is None.
Use the Docking property to define how a report is automatically resized as its parent is resized. For example, setting Docking to Bottom causes the report item to align itself with the bottom edges of its parent and to resize as the parent is resized.
A report item can be docked to one edge of its parent container or can be docked to all edges and fill the parent container.
Note:The Anchoring and Docking properties are mutually exclusive. Only one can be set at a time, and the last one set takes precedence.
Gets or sets the height of the report item.
Gets or sets the distance, in Units, between the left edge of the report item and the left edge of its container's client area.
[Browsable(false)]
[AIAssistantInclude("")]
public Unit Left { get; set; }
An Unit representing the distance between the left edge of the report item and the left edge of its container's client area.
Gets or sets the coordinates of the upper-left corner of the report item relative to the upper-left corner of its container.
[AIAssistantExclude("")]
public virtual PointU Location { get; set; }
The PointU that represents the upper-left corner of the report item relative to the upper-left corner of its container.
Because the PointU class is a value type (Structure in Visual Basic, struct in Visual C#), it is returned by value, meaning accessing the property returns a copy of the upper-left point of the report item. So, adjusting the X or Y properties of the PointU returned from this property will not affect the Left, Right, Top, or Bottom property values of the report item. To adjust these properties set each property value individually, or set the Location property with a new PointU.
Gets the distance, in Units, between the right edge of the report item and the left edge of its container's client area.
[Browsable(false)]
public Unit Right { get; }
An Unit representing the distance between the right edge of the report item and the left edge of its container's client area.
Gets or sets the height and width of the report item.
[AIAssistantExclude("")]
public virtual SizeU Size { get; set; }
The SizeU that represents the height and width of the report item in Units.
Because the SizeU class is a value type (Structure in Visual Basic, struct in Visual C#), it is returned by value, meaning accessing the property returns a copy of the size of the report item. So, adjusting the Width or Height properties of the SizeU returned from this property will not affect the Width or Height of the report item. To adjust the Width or Height of the report item, you must set the item's Width or Height property, or set the Size property with a new SizeU.
Gets or sets the distance, in Units, between the top edge of the report item and the top edge of its container's client area.
[Browsable(false)]
[AIAssistantInclude("")]
public Unit Top { get; set; }
An Unit representing the distance between the top edge of the report item and the top edge of its container's client area.
Gets or sets the width of the report item.