FolderFontSource.Type
FolderFontSource.Type property
Returns the type of the font source.
public override FontSourceType Type { get; }
Examples
using System;
using Aspose.Cells;
namespace AsposeCellsExamples
{
public class FolderFontSourcePropertyTypeDemo
{
public static void Run()
{
string folderPath = @"C:\Fonts";
bool scanSubfolders = true;
FolderFontSource folderFontSource = new FolderFontSource(folderPath, scanSubfolders);
Console.WriteLine("Folder Path: " + folderFontSource.FolderPath);
Console.WriteLine("Scan Subfolders: " + folderFontSource.ScanSubFolders);
Console.WriteLine("Font Source Type: " + folderFontSource.Type);
Workbook workbook = new Workbook();
FontConfigs.SetFontSources(new FontSourceBase[] { folderFontSource });
workbook.Save("FolderFontSourceExample.xlsx");
}
}
}
See Also
- enum FontSourceType
- class FolderFontSource
- namespace Aspose.Cells
- assembly Aspose.Cells