MonobjcMonobjc Documented Class Library
ShowDefinitionForAttributedStringRangeOptionsBaselineOriginProvider Method (attrString, targetRange, options, originProvider)
NamespacesMonobjc.AppKitNSViewShowDefinitionForAttributedStringRangeOptionsBaselineOriginProvider(NSAttributedString, NSRange, NSDictionary, Func<(Of <<'(NSRange, NSPoint>)>>))

Shows a window displaying the definition of the specified range of the attributed string.

Original signature is '- (void)showDefinitionForAttributedString:(NSAttributedString *)attrString range:(NSRange)targetRange options:(NSDictionary *)options baselineOriginProvider:(NSPoint (^)(NSRange adjustedRange))originProvider'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void ShowDefinitionForAttributedStringRangeOptionsBaselineOriginProvider(
	NSAttributedString attrString,
	NSRange targetRange,
	NSDictionary options,
	Func<NSRange, NSPoint> originProvider
Public Overridable Sub ShowDefinitionForAttributedStringRangeOptionsBaselineOriginProvider ( _
	attrString As NSAttributedString, _
	targetRange As NSRange, _
	options As NSDictionary, _
	originProvider As Func(Of NSRange, NSPoint) _
virtual void ShowDefinitionForAttributedStringRangeOptionsBaselineOriginProvider(
	NSAttributedString^ attrString, 
	NSRange targetRange, 
	NSDictionary^ options, 
	Func<NSRange, NSPoint>^ originProvider
attrString (NSAttributedString)
The attributed string for which to show the definition. If the receiver is an instance of NSTextView, the attrString can be nil, in which case the text view will automatically supply values suitable for displaying definitions for the specified range within its text content.
targetRange (NSRange)
options (NSDictionary)
An optional dictionary that specifies how the definition is displayed. See “NSDefinition Presentation Constants” for the key and it’s possible values.
originProvider (Func<(Of <(<'NSRange, NSPoint>)>)>)
The originProvider block object should return the baseline origin for the first character at the adjusted range.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

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