Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a base class for installed and private font collections.
public ref class FontCollection abstract : IDisposable
public abstract class FontCollection : IDisposable
type FontCollection = class interface IDisposable
Public MustInherit Class FontCollection Implements IDisposable
The FontCollection allows you to get a list of the font families contained in the collection with its Families property. For additional information on fonts and text, including example code, see Using Fonts and Text.
In .NET 6 and later versions, the System.Drawing.Common package, which includes this type, is only supported on Windows operating systems. Use of this type in cross-platform apps causes compile-time warnings and run-time exceptions. For more information, see System.Drawing.Common only supported on Windows.
Releases all resources used by this FontCollection.
Releases the unmanaged resources used by the FontCollection and optionally releases the managed resources.
Determines whether the specified object is equal to the current object.(Inherited from Object)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
Serves as the default hash function.(Inherited from Object)
Gets the Type of the current instance.(Inherited from Object)
Creates a shallow copy of the current Object.(Inherited from Object)
Returns a string that represents the current object.(Inherited from Object)