Back to Devexpress

ASPxRichEditFontSettings.DefaultFolder Property

aspnet-devexpress-dot-web-dot-aspxrichedit-dot-aspxricheditfontsettings-8fd285b9.md

latest3.2 KB
Original Source

ASPxRichEditFontSettings.DefaultFolder Property

Specifies a folder that contains font source files.

Namespace : DevExpress.Web.ASPxRichEdit

Assembly : DevExpress.Web.ASPxRichEdit.v25.2.dll

NuGet Package : DevExpress.Web.Office

Declaration

csharp
[DefaultValue("fonts/")]
public string DefaultFolder { get; set; }
vb
<DefaultValue("fonts/")>
Public Property DefaultFolder As String

Property Value

TypeDefaultDescription
String"fonts/"

The folder URL.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to DefaultFolder
ASPxRichEditSettings

.Fonts .DefaultFolder

|

Remarks

When you populate the FontCollection collection with a font, you should provide the font’s source files for four styles: regular, bold, italic, and bold italic. Place the source files in the DefaultFolder folder and name them according to the rules listed below to automatically assign the files to a corresponding ASPxRichEditFont object.

File NameDescriptionExample
FontFamily + .ttf/.woffThe font in regular stylecalibri.ttf
FontFamily + b + .ttf/.woffThe font in bold stylecalibrib.ttf
FontFamily + i + .ttf/.woffThe font in italic stylecalibrii.ttf
FontFamily + z + .ttf/.woffThe font in bold italic stylecalibriz.ttf

See the Font Management topic to learn more about fonts in the ASPxRichEdit control.

aspx
<dx:ASPxRichEdit ID="RichEdit" runat="server" Width="100%" Height="700px">
  <Settings>
    <Fonts DefaultFolder="fontFolder/">
      <FontCollection>
        <dx:ASPxRichEditFont FontFamily="Arial" Name="Arial"/>
        <dx:ASPxRichEditFont FontFamily="Calibri" Name="Calibri"/>
      </FontCollection>
    </Fonts>
  <Settings>
</dx:ASPxRichEdit>

See Also

ASPxRichEditFontSettings Class

ASPxRichEditFontSettings Members

DevExpress.Web.ASPxRichEdit Namespace