Class FontFamilyRecord
Contains the additional information about FontFamily. Used for displaying fonts in FontListBox and FontListComboBox
Inheritance
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class FontFamilyRecord : Object
Constructors
FontFamilyRecord()
Declaration
public FontFamilyRecord()
Properties
Family
Gets or sets System.Windows.Media.FontFamily of the record.
Declaration
public FontFamily Family { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.FontFamily | Type: System.Windows.Media.FontFamily |
See Also
Name
Gets the name of the record.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String | Type: System.String |
See Also
Purpose
Gets or sets the purpose of the record.
Declaration
public string Purpose { get; set; }
Property Value
Type | Description |
---|---|
System.String | Type: System.String |
See Also
Type
Gets or sets FontFamilyRecordType of the record.
Declaration
public FontFamilyRecordType Type { get; set; }
Property Value
Type | Description |
---|---|
FontFamilyRecordType | Type: FontFamilyRecordType |
See Also
Methods
Equals(Object)
Checks whether objects are equal.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Current object for comparison. |
Returns
Type | Description |
---|---|
System.Boolean | True if objects are equal, otherwise false. |
GetHashCode()
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for the current Object. |
Operators
Equality(FontFamilyRecord, FontFamilyRecord)
Operator which checks whether two records are equal.
Declaration
public static bool operator ==(FontFamilyRecord rec1, FontFamilyRecord rec2)
Parameters
Type | Name | Description |
---|---|---|
FontFamilyRecord | rec1 | First record to compare. |
FontFamilyRecord | rec2 | Second record to compare. |
Returns
Type | Description |
---|---|
System.Boolean | True if two records are equal, otherwise false. |
Inequality(FontFamilyRecord, FontFamilyRecord)
Operator which checks whether two records are different.
Declaration
public static bool operator !=(FontFamilyRecord rec1, FontFamilyRecord rec2)
Parameters
Type | Name | Description |
---|---|---|
FontFamilyRecord | rec1 | First record to compare. |
FontFamilyRecord | rec2 | Second record to compare. |
Returns
Type | Description |
---|---|
System.Boolean | True if two records are not equal, otherwise false. |