MonobjcMonobjc Documented Class Library
SetAlignmentRange Method (__target, alignment, aRange)
NamespacesMonobjc.AppKitNSMutableAttributedString_AppKitAdditionsSetAlignmentRange(NSMutableAttributedString, NSTextAlignment, NSRange)

Sets the alignment characteristic of the paragraph style attribute for the characters in aRange to alignment.

Original signature is '- (void)setAlignment:(NSTextAlignment)alignment range:(NSRange)aRange'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static void SetAlignmentRange(
	this NSMutableAttributedString __target,
	NSTextAlignment alignment,
	NSRange aRange
)
<ExtensionAttribute> _
Public Shared Sub SetAlignmentRange ( _
	__target As NSMutableAttributedString, _
	alignment As NSTextAlignment, _
	aRange As NSRange _
)
[ExtensionAttribute]
public:
static void SetAlignmentRange(
	NSMutableAttributedString^ __target, 
	NSTextAlignment alignment, 
	NSRange aRange
)
Parameters
__target (NSMutableAttributedString)
The target instance.
alignment (NSTextAlignment)
MISSING
aRange (NSRange)
MISSING
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type NSMutableAttributedString. 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)