public final class FolderFontSource extends Object implements FontSource, com.aspose.ms.System.IEquatable<FolderFontSource>
Represents the folder that contains TrueType fonts.
Constructor and Description |
---|
FolderFontSource(String folderPath,
SearchOption searchOption)
Initializes new instance of
FolderFontSource class. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(FolderFontSource other)
Determines whether the current
FolderFontSource is the same as specified FolderFontSource object. |
boolean |
equals(Object o)
Determines whether the current
FolderFontSource is the same as specified object. |
String |
getFolderPath()
Path to the folder that contains TrueType fonts.
|
SearchOption |
getSearchOption()
Specifies whether to search the current folder, or the current folder and all subfolders.
|
int |
hashCode()
Returns the hash code for the current
FolderFontSource object. |
static boolean |
isEqualTo(FolderFontSource left,
FolderFontSource right)
Determines whether two
FolderFontSource objects are the same. |
static boolean |
isNotEqualTo(FolderFontSource left,
FolderFontSource right)
Determines whether two
FolderFontSource objects are not the same. |
boolean |
isRecursive()
Checks if fonts would be searched recursively
|
String |
toString()
Returns a string that represents the current object.
|
public FolderFontSource(String folderPath, SearchOption searchOption)
Initializes new instance of FolderFontSource
class.
folderPath
- Path to the folder that contains TrueType fonts.searchOption
- Specifies whether to search the current folder, or the current folder and all sub-folders.IllegalArgumentException
- Thrown when folderPath
is null.FileNotFoundException
- Thrown when path specified in folderPath
can't be located.public final boolean equals(FolderFontSource other)
Determines whether the current FolderFontSource
is the same as specified FolderFontSource
object.
other
- The object to compare with the current FolderFontSource
object.true
if both FolderFontSource
objects are the same; otherwise, false
public boolean equals(Object o)
Determines whether the current FolderFontSource
is the same as specified object.
equals
in interface com.aspose.ms.System.IEquatable<FolderFontSource>
equals
in class Object
o
- The object to compare with the current FolderFontSource
object.true
if obj
parameter is FolderFontSource
and is the same as current FolderFontSource
object; otherwise, false
public final String getFolderPath()
Path to the folder that contains TrueType fonts.
public final SearchOption getSearchOption()
Specifies whether to search the current folder, or the current folder and all subfolders.
public int hashCode()
Returns the hash code for the current FolderFontSource
object.
hashCode
in class Object
FolderFontSource
object.public static boolean isEqualTo(FolderFontSource left, FolderFontSource right)
Determines whether two FolderFontSource
objects are the same.
left
- Left FolderFontSource
object.right
- Right FolderFontSource
object.true
if both FolderFontSource
objects are the same; otherwise, false
public static boolean isNotEqualTo(FolderFontSource left, FolderFontSource right)
Determines whether two FolderFontSource
objects are not the same.
left
- Left FolderFontSource
object.right
- Right FolderFontSource
object.public boolean isRecursive()