HtmlExportOptionsBase.InlineCss Property
Specifies whether the style properties are written to the <head> section of an HTML document, or they are defined at the same place where a specific style is assigned in a document.
Namespace: DevExpress.XtraPrinting
Assembly: DevExpress.Printing.v18.2.Core.dll
Declaration
[DefaultValue(false)]
[TypeConverter(typeof(BooleanTypeConverter))]
[XtraSerializableProperty]
public virtual bool InlineCss { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | **false** | true to define the style properties at the same place where a specific style is assigned in a document, otherwise false. |
Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to InlineCss |
---|---|---|
Cross-Platform Class Library | ExportOptions |
|
WPF Controls | ExportOptionsContainer |
|
Remarks
When the styles are written to the <head> section of an HTML document, they are ignored by some mail clients, and to maintain a consistent look for your reports, the HtmlExportOptionsBase.InlineCss
property must be to true.
In this case, the style properties will be defined at the same place where a specific style is assigned in a document. This will ensure that the resulting document is compatible with any mail client (although at the expense of a larger document size).
This property also affects how the XRPictureBox and XRBarCode controls are rendered on a web page. By default, images corresponding to rendered controls are assigned to the background-image property of styles that are specified in the <head> section of an HTML document. Setting the HtmlExportOptionsBase.InlineCss
property to true will make these controls rendered as <img> elements in the document body, with the src attribute specifying a base64 image representation.