VerticalAnchorStyles Enum
Specifies how a control anchors to the top and/or bottom edges of its container.
Namespace: DevExpress.XtraReports.UI
Assembly: DevExpress.Printing.v18.2.Core.dll
Declaration
[Flags]
[TypeConverter(typeof(EnumTypeConverter))]
[ResourceFinder(typeof(ResFinder))]
public enum VerticalAnchorStyles
Members
Name | Description |
---|---|
None
|
Does not anchor a control to the edges of its container. |
Top
|
Anchores a control to the top edge of its container. |
Bottom
|
Anchores a control to the bottom edge of its container. |
Both
|
Anchores a control to the top and bottom edges of its container. |
Related API Members
The following properties accept/return VerticalAnchorStyles values:
Library | Related API Members |
---|---|
Cross-Platform Class Library | IBrickOwner.AnchorVertical |
Reporting | Band.AnchorVertical |
XRControl.AnchorVertical | |
XRCrossBandControl.AnchorVertical | |
XRCrossBandLine.AnchorVertical | |
XRPageBreak.AnchorVertical | |
XRSubreport.AnchorVertical | |
XRTableCell.AnchorVertical | |
XRTableOfContents.AnchorVertical | |
XRTableRow.AnchorVertical |
Remarks
When the height of a control grows or shrinks in Print Preview, the position of controls that are located below the grown\shrunk control changes. You can use the AnchorVertical property to attach the top and\or bottom edges of the control to the edges of the control’s container on a rendered document page. You can set the value of this property to one of the VerticalAnchorStyles enumeration values. The following examples demonstrate how different values affect anchoring.
The below image shows the initial report layout. Three XRLabel controls are inside a panel. The top and bottom controls contain multiline text.
The control in the middle has different AnchorVertical property values. The following images show how these values affect the position of this middle control when the report is rendered in Preview.