HorizontalAnchorStyles Enum
Lists the horizontal anchoring styles available for a report control.
Namespace: DevExpress.XtraReports.UI
Assembly: DevExpress.Printing.v25.1.Core.dll
NuGet Package: DevExpress.Printing.Core
Declaration
Members
| Name | Description |
|---|---|
None
|
Identical to the Left member. |
Left
|
Anchors a control to the left edge of its container. |
Right
|
Anchors a control to the right edge of its container. |
Both
|
Anchores a control to the left and right edges of its container. |
Remarks
The AnchorHorizontal property defines how a report control is resized to maintain the distance to the left and right edges of its container. You can set the value of this property to one of the HorizontalAnchorStyles enumeration values. The following examples demonstrate how different property values affect anchoring:
The AnchorHorizontal property is hidden in the following descendants of the XRControl class:
- Band
- XRCrossTab
- XRPageBreak
- XRPdfContent
- XRSubreport
- XRTableOfContents
- XRTableCell
- XRTableRow
- XtraReport
- XRCrossTabCell
 control with the [](xref:DevExpress.XtraReports.UI.XRLabel) control inside it. Different values of the **AnchorHorizontal** property are set for the **XRLabel** control. The following images show how these values affect the anchoring of this control when the width of the panel is changed.](/CoreLibraries/images/anchor-horizontal-initial-layout.png)


