BCGControlBar Library for .NET
BeforeAddFont Event




Subscribe to this event and set BeforeAddFontEventArgs.Cancel to true to prevent addition of a specific font to the gallery.
Syntax
'Declaration
 
Public Event BeforeAddFont As BeforeAddFontEventHandler
'Usage
 
Dim instance As SmartFontComboBoxButton
Dim handler As BeforeAddFontEventHandler
 
AddHandler instance.BeforeAddFont, handler
public event BeforeAddFontEventHandler BeforeAddFont
public: __event BeforeAddFontEventHandler* BeforeAddFont
public:
event BeforeAddFontEventHandler^ BeforeAddFont
Event Data

The event handler receives an argument of type BeforeAddFontEventArgs containing data related to this event. The following BeforeAddFontEventArgs properties provide information specific to this event.

PropertyDescription
Cancel (Inherited from System.ComponentModel.CancelEventArgs) 
Family Specifies the font family of the font being added to a font combo box.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

SmartFontComboBoxButton Class
SmartFontComboBoxButton Members

Send Feedback