CTFontCollection Class
Definition
Important
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.
Font collections are the standard mechanism used to enumerate fonts descriptors.
public class CTFontCollection : CoreFoundation.NativeObject
type CTFontCollection = class
inherit NativeObject
- Inheritance
Constructors
| Name | Description |
|---|---|
| CTFontCollection(CTFontCollectionOptions) |
Creates a CTFontCollection that contains all of the available font descriptors. |
| CTFontCollection(CTFontDescriptor[], CTFontCollectionOptions) |
Creates a CTFontCollection from the specified set of queryDescriptors. |
Properties
| Name | Description |
|---|---|
| Handle | (Inherited from DisposableObject) |
| Owns | (Inherited from DisposableObject) |
Methods
| Name | Description |
|---|---|
| ClearHandle() | (Inherited from DisposableObject) |
| Dispose() | (Inherited from DisposableObject) |
| Dispose(Boolean) | (Inherited from NativeObject) |
| Equals(Object) | (Inherited from DisposableObject) |
| GetCheckedHandle() | (Inherited from DisposableObject) |
| GetHashCode() | (Inherited from DisposableObject) |
| GetMatchingFontDescriptors() |
Gets the mathching font descriptors from this collection. |
| GetMatchingFontDescriptors(Comparison<CTFontDescriptor>) |
Gets an array of font descriptors sorted by the specified sorting function. |
| GetMatchingFontDescriptors(CTFontCollectionOptions) |
Returns an array of font descriptors that have the specified options. |
| InitializeHandle(NativeHandle) | (Inherited from DisposableObject) |
| Release() | (Inherited from NativeObject) |
| Retain() | (Inherited from NativeObject) |
| WithFontDescriptors(CTFontDescriptor[], CTFontCollectionOptions) |
Creates a copy of the CTFontCollection while adding the specified font descriptors. |
Extension Methods
| Name | Description |
|---|---|
| GetHandle(INativeObject) | |
| GetNonNullHandle(INativeObject, String) | |