共用方式為


NSTextField.CreateLabel 方法

定義

多載

CreateLabel(NSAttributedString)
CreateLabel(String)

CreateLabel(NSAttributedString)

[Foundation.Export("labelWithAttributedString:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.All, null)]
public static AppKit.NSTextField CreateLabel (Foundation.NSAttributedString attributedStringValue);
static member CreateLabel : Foundation.NSAttributedString -> AppKit.NSTextField

參數

attributedStringValue
NSAttributedString

傳回

屬性

適用於

CreateLabel(String)

[Foundation.Export("labelWithString:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.All, null)]
public static AppKit.NSTextField CreateLabel (string stringValue);
static member CreateLabel : string -> AppKit.NSTextField

參數

stringValue
String

傳回

屬性

適用於