Knowledge Base



KB10478 - Setting style for Labels.Font in .NET applications.

Labels.Font returns stdole.Font object. This object has no Style property. You must individually access Labels.Font.Bold, Labels.Font.Charset, Labels.Font.Italic, Labels.Font.Name, Labels.Font.Size, Labels.Font.Strikethrough, Labels.Font.Underline, and Labels.Font.Weight.

Also please note that the interop wrapper for visual controls will instead provide a typical System.Drawing.Font.

Created: January 30, 2004, Modified: July 29, 2015