FolderFontSourceScanSubfolders Property

Determines whether or not to scan the subfolders.

Namespace:  Aspose.Words.Fonts
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public bool ScanSubfolders { get; }

Property Value

Type: Boolean
Examples
Shows how to create a folder font source.
Document doc = new Document();

// Create a font settings object for our document
doc.FontSettings = new FontSettings();

// Create a font source from a folder that contains font files
FolderFontSource folderFontSource = new FolderFontSource(FontsDir, false, 1);

// Add that source to our document
doc.FontSettings.SetFontsSources(new FontSourceBase[] { folderFontSource });

Assert.AreEqual(FontsDir, folderFontSource.FolderPath);
Assert.AreEqual(false, folderFontSource.ScanSubfolders);
Assert.AreEqual(FontSourceType.FontsFolder, folderFontSource.Type);
Assert.AreEqual(1, folderFontSource.Priority);
See Also