Breyta

Deila með


FontCollection Class

Definition

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
Inheritance
FontCollection
Derived
Implements

Remarks

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.

Note

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.

Properties

Families

Gets the array of FontFamily objects associated with this FontCollection.

Methods

Dispose()

Releases all resources used by this FontCollection.

Dispose(Boolean)

Releases the unmanaged resources used by the FontCollection and optionally releases the managed resources.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
Finalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also