共用方式為


NSLinguisticTagger.GetTag 方法

定義

多載

GetTag(nint, NSString, NSRange, NSRange)
GetTag(nuint, NSLinguisticTaggerUnit, String, NSRange)
GetTag(String, nuint, NSLinguisticTaggerUnit, String, NSOrthography, NSRange)

GetTag(nint, NSString, NSRange, NSRange)

[Foundation.Export("tagAtIndex:scheme:tokenRange:sentenceRange:")]
public virtual string GetTag (nint charIndex, Foundation.NSString tagScheme, ref Foundation.NSRange tokenRange, ref Foundation.NSRange sentenceRange);
abstract member GetTag : nint * Foundation.NSString *  *  -> string
override this.GetTag : nint * Foundation.NSString *  *  -> string

參數

charIndex
System.System.IntPtr System.nativeint
tagScheme
NSString
tokenRange
NSRange
sentenceRange
NSRange

傳回

屬性

適用於

GetTag(nuint, NSLinguisticTaggerUnit, String, NSRange)

[Foundation.Export("tagAtIndex:unit:scheme:tokenRange:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual string GetTag (nuint charIndex, Foundation.NSLinguisticTaggerUnit unit, string scheme, ref Foundation.NSRange tokenRange);
abstract member GetTag : nuint * Foundation.NSLinguisticTaggerUnit * string *  -> string
override this.GetTag : nuint * Foundation.NSLinguisticTaggerUnit * string *  -> string

參數

charIndex
System.System.UIntPtr System.unativeint
scheme
String
tokenRange
NSRange

即將加入。

這個參數可以是 null

傳回

屬性

適用於

GetTag(String, nuint, NSLinguisticTaggerUnit, String, NSOrthography, NSRange)

[Foundation.Export("tagForString:atIndex:unit:scheme:orthography:tokenRange:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static string GetTag (string str, nuint charIndex, Foundation.NSLinguisticTaggerUnit unit, string scheme, Foundation.NSOrthography orthography, ref Foundation.NSRange tokenRange);
static member GetTag : string * nuint * Foundation.NSLinguisticTaggerUnit * string * Foundation.NSOrthography *  -> string

參數

str
String
charIndex
System.System.UIntPtr System.unativeint
scheme
String
orthography
NSOrthography

即將加入。

這個參數可以是 null

tokenRange
NSRange

即將加入。

這個參數可以是 null

傳回

屬性

適用於