FontCollection FontCollection FontCollection FontCollection Class


提供已安裝和私用字型集合的基底類別。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


FontCollection可讓您取得一份包含在集合中的字型系列其Families屬性。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.


Families Families Families Families

取得與這個 FontFamily 相關聯的 FontCollection 物件陣列。Gets the array of FontFamily objects associated with this FontCollection.


Dispose() Dispose() Dispose() Dispose()

釋放這個 FontCollection 所使用的所有資源。Releases all resources used by this FontCollection.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

釋放 FontCollection 所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。Releases the unmanaged resources used by the FontCollection and optionally releases the managed resources.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
Finalize() Finalize() Finalize() Finalize()

允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)