[Foundation] Move NSAttributedStringDocumentAttributes.Timeout to shared code.
This commit is contained in:
Родитель
556c5fd58d
Коммит
547bb73ab9
|
@ -138,10 +138,6 @@ namespace Foundation
|
||||||
}
|
}
|
||||||
|
|
||||||
public partial class NSAttributedStringDocumentAttributes : DictionaryContainer {
|
public partial class NSAttributedStringDocumentAttributes : DictionaryContainer {
|
||||||
public float? Timeout {
|
|
||||||
get { return GetFloatValue (NSStringAttributeKey.NSTimeoutDocumentOption); }
|
|
||||||
set { SetNumberValue (NSStringAttributeKey.NSTimeoutDocumentOption, (float?)value); }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -361,6 +361,23 @@ namespace Foundation {
|
||||||
}
|
}
|
||||||
#endif // !__MACOS__
|
#endif // !__MACOS__
|
||||||
|
|
||||||
|
#if __MACOS__
|
||||||
|
#if NET
|
||||||
|
[UnsupportedOSPlatform ("ios")]
|
||||||
|
[UnsupportedOSPlatform ("tvos")]
|
||||||
|
[UnsupportedOSPlatform ("maccatalyst")]
|
||||||
|
[SupportedOSPlatform ("macos")]
|
||||||
|
#endif // NET
|
||||||
|
public float? Timeout {
|
||||||
|
get {
|
||||||
|
return GetFloatValue (NSAttributedStringDocumentReadingOptionKey.NSTimeoutDocumentOption);
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
SetNumberValue (NSAttributedStringDocumentReadingOptionKey.NSTimeoutDocumentOption, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !__MACOS__
|
||||||
|
|
||||||
#endif // !COREBUILD
|
#endif // !COREBUILD
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15524,9 +15524,6 @@ namespace AppKit {
|
||||||
NSString TextEffect { get; }
|
NSString TextEffect { get; }
|
||||||
|
|
||||||
// Internal
|
// Internal
|
||||||
[Internal, Field ("NSTimeoutDocumentOption")]
|
|
||||||
NSString NSTimeoutDocumentOption { get; }
|
|
||||||
|
|
||||||
[Internal, Field ("NSFileTypeDocumentOption")]
|
[Internal, Field ("NSFileTypeDocumentOption")]
|
||||||
NSString NSFileTypeDocumentOption { get; }
|
NSString NSFileTypeDocumentOption { get; }
|
||||||
|
|
||||||
|
|
|
@ -4411,5 +4411,8 @@ namespace UIKit {
|
||||||
[Internal, Field ("NSTextSizeMultiplierDocumentOption")]
|
[Internal, Field ("NSTextSizeMultiplierDocumentOption")]
|
||||||
NSString NSTextSizeMultiplierDocumentOption { get; }
|
NSString NSTextSizeMultiplierDocumentOption { get; }
|
||||||
|
|
||||||
|
[NoiOS, NoTV, NoWatch, NoMacCatalyst]
|
||||||
|
[Internal, Field ("NSTimeoutDocumentOption")]
|
||||||
|
NSString NSTimeoutDocumentOption { get; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче