Tag Archives: select font

Use value equality to compare font objects in C#

This example explains the difference between reference equality and value equality, and shows how you can test value equality for font objects. Reference equality asks whether two variables refer to the same object. In contrast, value equality asks whether two … Continue reading

Posted in dialogs, fonts, OOP, syntax | Tagged , , , , , , , , , , , , , , | Leave a comment

Display a font selection dialog with an Apply button in C#

Sometimes an application displays a font selection dialog that has an Apply button. If you click that button, the application shows what it would look like if you accept the dialog’s current font. If you click OK, the dialog closes … Continue reading

Posted in dialogs, fonts | Tagged , , , , , , , , , | 1 Comment