Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

XRControlStyle(Color, Color, BorderSide, Single, DXFont, Color, TextAlignment) Constructor

In This Article

Initializes a new instance of the XRControlStyle class with specified settings.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v24.2.dll

NuGet Package: DevExpress.Reporting.Core

#Declaration

public XRControlStyle(
    Color backColor,
    Color borderColor,
    BorderSide sides,
    float borderWidth,
    DXFont font,
    Color foreColor,
    TextAlignment textAlignment
)

#Parameters

Name Type Description
backColor Color

A Color structure. This value is assigned to the XRControlStyle.BackColor property.

borderColor Color

A Color structure. This value is assigned to the XRControlStyle.BorderColor property.

sides BorderSide

A BorderSide enumeration value. This value is assigned to the XRControlStyle.Sides property.

borderWidth Single

A Single value. This value is assigned to the XRControlStyle.BorderWidth property.

font DXFont

A DXFont value. This value is assigned to the XRControlStyle.Font property.

foreColor Color

A Color structure. This value is assigned to the XRControlStyle.ForeColor property.

textAlignment TextAlignment

A TextAlignment enumeration value. This value is assigned to the XRControlStyle.TextAlignment property.

See Also