SKFontStyleSet Class

Definition

Represets the set of styles for a particular font family.

public class SKFontStyleSet : SkiaSharp.SKObject, System.Collections.Generic.IEnumerable<SkiaSharp.SKFontStyle>, System.Collections.Generic.IReadOnlyCollection<SkiaSharp.SKFontStyle>, System.Collections.Generic.IReadOnlyList<SkiaSharp.SKFontStyle>
Inheritance
SKFontStyleSet
Implements

Constructors

SKFontStyleSet()

Creates a new, empty SKFontStyleSet.

Properties

Count

Gets the number of font styles in the set.

Handle

Gets or sets the handle to the underlying native object.

(Inherited from SKObject)
IgnorePublicDispose

Gets or sets a value indicating whether the call the public Dispose() should be no-op.

(Inherited from SKNativeObject)
IsDisposed

Gets or sets a value indicating whether the object has already been disposed.

(Inherited from SKNativeObject)
Item[Int32]

Gets the font style at the specified index.

OwnsHandle

Gets a value indicating whether this object should destroy the underlying native object.

(Inherited from SKObject)

Methods

CreateTypeface(Int32)

Creates a new SKTypeface with the style that is the closest match to the style at the specified index.

CreateTypeface(SKFontStyle)

Creates a new SKTypeface with a style that is the closest match to the specified font style.

Dispose()

Releases all resources used by this SKNativeObject.

(Inherited from SKNativeObject)
Dispose(Boolean)

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

DisposeInternal()

Triggers a dispose, ignoring the value of IgnorePublicDispose.

(Inherited from SKNativeObject)
DisposeManaged()

Implemented by derived SKObject types to destroy any managed objects.

(Inherited from SKObject)
DisposeNative()

Implemented by derived SKObject types to destroy any native objects.

(Inherited from SKObject)
DisposeUnownedManaged() (Inherited from SKObject)
GetEnumerator()

Returns an enumerator that iterates through the font styles.

GetStyleName(Int32)

Returns the name of the font style.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through the font styles.

Applies to