C# Class Nexus.UI.Controls.FontProvider

Inheritance: System.ComponentModel.Component, IExtenderProvider
Afficher le fichier Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

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

Dispose() protected méthode

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

FontProvider() public méthode

Creates a new instance of the FontProvider class.
public FontProvider ( ) : System
Résultat System

SetFontInformation() protected méthode

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.
Résultat void

SetFontSet() public méthode

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.
Résultat void

SetFontSetResolver() public static méthode

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.
Résultat void

SetFontSize() public méthode

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.
Résultat void

SetFontStyle() public méthode

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.
Résultat void