C# Class Nexus.UI.Controls.FontProvider

Inheritance: System.ComponentModel.Component, IExtenderProvider
Show file Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Methods

Method Description
CanExtend ( object extendee ) : bool

Specifies whether this object can provide its extender properties to the specified object.

FontProvider ( ) : System

Creates a new instance of the FontProvider class.

SetFontSet ( object component, string fontSet ) : void

Sets the font set for the component passed.

SetFontSetResolver ( IFontSetResolver p_fsrResolver ) : void

Sets the resolver to use to get the font associated with a font set.

SetFontSize ( object component, float fontSize ) : void

Sets the font size for the component passed.

SetFontStyle ( object component, FontStyle fontStyle ) : void

Sets the font set for the component passed.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

SetFontInformation ( object component, FontSetInformation information ) : void

Sets the font set for the component passed.

Private Methods

Method Description
GetFontInformation ( object component ) : FontSetInformation
GetFontSet ( object component ) : string
GetFontSize ( object component ) : float
GetFontStyle ( object component ) : FontStyle
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

Method Details

CanExtend() public method

Specifies whether this object can provide its extender properties to the specified object.
public CanExtend ( object extendee ) : bool
extendee object
return bool

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

FontProvider() public method

Creates a new instance of the FontProvider class.
public FontProvider ( ) : System
return System

SetFontInformation() protected method

Sets the font set for the component passed.
protected SetFontInformation ( object component, FontSetInformation information ) : void
component object The component to set the font set for.
information FontSetInformation The name of the font set used.
return void

SetFontSet() public method

Sets the font set for the component passed.
public SetFontSet ( object component, string fontSet ) : void
component object The component to set the font set for.
fontSet string The name of the font set used.
return void

SetFontSetResolver() public static method

Sets the resolver to use to get the font associated with a font set.
public static SetFontSetResolver ( IFontSetResolver p_fsrResolver ) : void
p_fsrResolver IFontSetResolver The resolver to use to get the font associated with a font set.
return void

SetFontSize() public method

Sets the font size for the component passed.
public SetFontSize ( object component, float fontSize ) : void
component object The component to set the font set for.
fontSize float The size of the font.
return void

SetFontStyle() public method

Sets the font set for the component passed.
public SetFontStyle ( object component, FontStyle fontStyle ) : void
component object The component to set the font set for.
fontStyle FontStyle The name of the font set used.
return void