다음을 통해 공유


CTFontDescriptor.WithAttributes 메서드

정의

오버로드

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

매개 변수

반환

설명

var attributes = new CTFontDescriptorAttributes () {
	FamilyName = "Times New Roman"
};

var newFontDescriptor = myDescriptor.WithAttributes (attributes);

적용 대상