CTFontDescriptor.WithAttributes メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
WithAttributes(NSDictionary) | |
WithAttributes(CTFontDescriptorAttributes) |
WithAttributes(NSDictionary)
public CoreText.CTFontDescriptor WithAttributes (Foundation.NSDictionary attributes);
member this.WithAttributes : Foundation.NSDictionary -> CoreText.CTFontDescriptor
パラメーター
- attributes
- NSDictionary
戻り値
適用対象
WithAttributes(CTFontDescriptorAttributes)
public CoreText.CTFontDescriptor WithAttributes (CoreText.CTFontDescriptorAttributes attributes);
member this.WithAttributes : CoreText.CTFontDescriptorAttributes -> CoreText.CTFontDescriptor
パラメーター
- attributes
- CTFontDescriptorAttributes
戻り値
注釈
var attributes = new CTFontDescriptorAttributes () {
FamilyName = "Times New Roman"
};
var newFontDescriptor = myDescriptor.WithAttributes (attributes);