bricklayer137
bricklayer137

Reputation: 384

Get windows explorer font size of current user using C#

Is this possible with C# or do I need to do P/Invoke? I was thinking it's an easy way to determine which font size to set for my ListView.

Upvotes: 1

Views: 705

Answers (1)

Eugenio De Hoyos
Eugenio De Hoyos

Reputation: 1775

Check under class SystemFonts. I don't think you need more than the default namespaces for this.

for example:

string name = SystemFonts.IconTitleFont.FontFamily.Name;
float size = SystemFonts.IconTitleFont.Size;

Upvotes: 1

Related Questions