Back to Devexpress

SpreadsheetViewOptions.UseFontSubstitution Property

officefileapi-devexpress-dot-xtraspreadsheet-dot-spreadsheetviewoptions-e5143f8d.md

latest2.5 KB
Original Source

SpreadsheetViewOptions.UseFontSubstitution Property

Gets or sets whether to use font substitution to display characters that are missing in the current font.

Namespace : DevExpress.XtraSpreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
[DefaultValue(false)]
public bool UseFontSubstitution { get; set; }
vb
<DefaultValue(False)>
Public Property UseFontSubstitution As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true to enable font substitution; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to UseFontSubstitution
SpreadsheetControlOptions

.View .UseFontSubstitution

|

Remarks

When the UseFontSubstitution property is true , the Spreadsheet control substitutes fonts for characters that are missing in the current font. If a suitable font is found in a font cache, the Spreadsheet applies it to the entire cell text. This option specifies only how a document is displayed on screen and doesn’t affect printing or export to PDF (they use their own mechanism of font substitution).

csharp
// Enable font substitution.
spreadsheetControl1.Options.View.UseFontSubstitution = true;
vb
' Enable font substitution.
spreadsheetControl1.Options.View.UseFontSubstitution = True

The UseFontSubstitution property is in effect only if the new Spreadsheet layout engine is used.

See Also

SpreadsheetViewOptions Class

SpreadsheetViewOptions Members

DevExpress.XtraSpreadsheet Namespace