Returns an NSData object that contains a text stream corresponding to the characters and attributes within the given range.
Original signature is '- (NSData *)dataFromRange:(NSRange)range documentAttributes:(NSDictionary *)dict error:(NSError **)error'
Available in Mac OS X v10.4 and later.

C# | Visual Basic | Visual C++ |
public static NSData DataFromRangeDocumentAttributesError( this NSAttributedString __target, NSRange range, NSDictionary dict, out NSError error )
<ExtensionAttribute> _ Public Shared Function DataFromRangeDocumentAttributesError ( _ __target As NSAttributedString, _ range As NSRange, _ dict As NSDictionary, _ <OutAttribute> ByRef error As NSError _ ) As NSData
[ExtensionAttribute] public: static NSData^ DataFromRangeDocumentAttributesError( NSAttributedString^ __target, NSRange range, NSDictionary^ dict, [OutAttribute] NSError^% error )

- __target (NSAttributedString)
- The target instance.
- range (NSRange)
- MISSING
- dict (NSDictionary)
- MISSING
- error (NSError%)
- MISSING

[Missing <returns> documentation for "M:Monobjc.AppKit.NSAttributedString_AppKitAdditions.DataFromRangeDocumentAttributesError(Monobjc.Foundation.NSAttributedString,Monobjc.Foundation.NSRange,Monobjc.Foundation.NSDictionary,Monobjc.Foundation.NSError@)"]

In Visual Basic and C#, you can call this method as an instance method on any object of type NSAttributedString. When you use instance method syntax to call this method, omit the first parameter.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)