Skip to main content

XRControl.StyleName Property

Gets or sets the name of the style, which is applied to the current control.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v23.1.dll

NuGet Package: DevExpress.Reporting.Core


public virtual string StyleName { get; set; }

Property Value

Type Description

A String representing the name of the style.


The StyleName property is intended to provide the capability to define a control’s appearance by a certain style when a report is constructed at runtime via code. To do this, you first need to create an instance of the XRControlStyle object and set its appearance properties, then add this style to a report’s XtraReport.StyleSheet and finally assign its XRControlStyle.Name to the StyleName property of a particular report control or band.

For more information on using styles in XtraReports, refer to the Report Visual Styles document.

See Also