MonobjcMonobjc Documented Class Library
SetAlignment Method (mode)

Sets the alignment of text in the receiver. (Available in Mac OS X v10.0 through Mac OS X v10.5.)

Original signature is '- (void)setAlignment:(NSTextAlignment)mode'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void SetAlignment(
	NSTextAlignment mode
Public Overridable Sub SetAlignment ( _
	mode As NSTextAlignment _
virtual void SetAlignment(
	NSTextAlignment mode
mode (NSTextAlignment)
One of five constants that specifies alignment within the cell: NSLeftTextAlignment, NSRightTextAlignment, NSCenterTextAlignment, NSJustifiedTextAlignment, and NSNaturalTextAlignment (the default alignment for the text).
Version Information
  • Available in Monobjc Bridge: 10.5 (For Mac OS X 10.5 and later)

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