Telerik Reporting

Telerik.Reporting Send comments on this topic.
Anchor Property
See Also 
Telerik.Reporting Assembly > Telerik.Reporting Namespace > ReportItem Class : Anchor Property


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.  

 

Namespace: Telerik.Reporting
Assembly: Telerik.Reporting (in Telerik.Reporting.dll)

Syntax

Visual Basic (Declaration) 
<MergablePropertyAttribute(True)>
<SRDescriptionAttribute("Defines the edges of the container to which a certain report item is bound. When a report item is anchored to an edge, the distance between the item's closest edge and the specified edge will remain constant.")>
<SRCategoryAttribute("Layout")>
<ReportItemPropertyAttribute()>
Public Property Anchor As AnchorStyles
Visual Basic (Usage)Copy Code
Dim instance As ReportItem
Dim value As AnchorStyles
 
instance.Anchor = value
 
value = instance.Anchor
C# 
[MergablePropertyAttribute(true)]
[SRDescriptionAttribute("Defines the edges of the container to which a certain report item is bound. When a report item is anchored to an edge, the distance between the item's closest edge and the specified edge will remain constant.")]
[SRCategoryAttribute("Layout")]
[ReportItemPropertyAttribute()]
public AnchorStyles Anchor {get; set;}

Return Value

A bitwise combination of the AnchorStyles values. The default is None.

Remarks

Use the Anchor 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 Anchor 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 Anchor and Dock properties are mutually exclusive. Only one can be set at a time, and the last one set takes precedence.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also