MonobjcMonobjc Documented Class Library
DataFromRangeDocumentAttributesError Method (__target, range, dict, error)
NamespacesMonobjc.AppKitNSAttributedString_AppKitAdditionsDataFromRangeDocumentAttributesError(NSAttributedString, NSRange, NSDictionary, NSError%)

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.

Declaration Syntax
C#Visual BasicVisual 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
)
Parameters
__target (NSAttributedString)
The target instance.
range (NSRange)
MISSING
dict (NSDictionary)
MISSING
error (NSError%)
MISSING
Return Value

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

Usage Note
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.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)