The requested page is not available for the requested platform. You are viewing the content for Default platform.

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.v18.2.dll

Declaration

[Browsable(false)]
public virtual string StyleName { get; set; }
<Browsable(False)>
Public Overridable Property StyleName As String

Property Value

Type Description
String

A String representing the name of the style.

Remarks

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