Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

NSLayoutManagerMBS.allowsNonContiguousLayout as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacCocoa Plugin 12.1 Yes No No Yes, macOS only No
Function: Whether noncontiguous layout is enabled.
Notes:
Setting to true allows but does not require the layout manager to use noncontiguous layout, and the layout manager may in fact not do so, depending on its configuration.
(Read and Write property)

Feedback, Comments & Corrections

NSLayoutManagerMBS.attributedString as NSAttributedStringMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacCocoa Plugin 12.1 Yes No No Yes, macOS only No
Function: Returns the text storage object from which the NSGlyphGenerator object procures characters for glyph generation.
Notes:
This method is part of the NSGlyphStorage protocol, for use by the glyph generator. For NSLayoutManager the attributed string is equivalent to the text storage.
Available in Mac OS X v10.5 and later.
(Read only property)

Feedback, Comments & Corrections

NSLayoutManagerMBS.backgroundLayoutEnabled as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacCocoa Plugin 12.1 Yes No No Yes, macOS only No
Function: Whether the receiver generates glyphs and lays them out when the application's run loop is idle.
Notes:
If true, background layout is enabled; if false, the receiver performs glyph generation and layout only when necessary.
(Read and Write property)

Feedback, Comments & Corrections

NSLayoutManagerMBS.font as NSFontMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacCocoa Plugin 12.5 Yes No No Yes, macOS only No
Function: The font for the invisible character drawing.
Notes:
Use nil font for using the font of the current text.
This method is only available if the NSLayoutManagerMBS object has been created with new NSLayoutManagerMBS, so the plugin can use the special NSLayoutManager subclass with support for invisible character drawing.
(Read and Write property)

Feedback, Comments & Corrections

NSLayoutManagerMBS.Handle as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacCocoa Plugin 14.2 Yes No No Yes, macOS only No
Function: The internal object reference.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSLayoutManagerMBS.hasNonContiguousLayout as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacCocoa Plugin 12.1 Yes No No Yes, macOS only No
Function: Whether the layout manager currently has any areas of noncontiguous layout.
Notes:
There may be times at which there is no noncontiguous layout, such as when layout is complete; this method enables the layout manager to report that to clients.
(Read only property)

Feedback, Comments & Corrections

NSLayoutManagerMBS.hyphenationFactor as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacCocoa Plugin 12.1 Yes No No Yes, macOS only No
Function: The threshold controlling when hyphenation is done.
Notes:
factor: The hyphenation factor, ranging from 0.0 to 1.0. By default, the value is 0.0, meaning hyphenation is off. A factor of 1.0 causes hyphenation to be attempted always.

Whenever (width of the real contents of the line) / (the line fragment width) is below factor, hyphenation is attempted when laying out the line. Hyphenation slows down text layout and increases memory usage, so it should be used sparingly.

May be overridden on a per-paragraph basis by the NSParagraphStyle method hyphenationFactor.
(Read and Write property)

Feedback, Comments & Corrections

NSLayoutManagerMBS.showInvisibleCharacters as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacCocoa Plugin 12.4 Yes No No Yes, macOS only No
Function: Whether to show invisible characters.
Notes:
This method is only available if the NSLayoutManagerMBS object has been created with new NSLayoutManagerMBS, so the plugin can use the special NSLayoutManager subclass with support for invisible character drawing. (from MBS Plugin)
(Read and Write property)

Feedback, Comments & Corrections

NSLayoutManagerMBS.showsControlCharacters as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacCocoa Plugin 12.1 Yes No No Yes, macOS only No
Function: Whether to substitute visible glyphs for control characters in layout.
Example:
if TargetCocoa then

dim t as NSTextViewMBS = TextArea1.NSTextViewMBS
dim l as NSLayoutManagerMBS = t.layoutManager

l.showsControlCharacters = true

else
// not supported
break
end if
Notes:
If true, the receiver substitutes visible glyphs for control characters if the font and script support it; if false, it doesn't. The default is false.
(Read and Write property)

Feedback, Comments & Corrections

NSLayoutManagerMBS.showsInvisibleCharacters as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacCocoa Plugin 12.1 Yes No No Yes, macOS only No
Function: Whether to substitute visible glyphs for whitespace and other typically invisible characters in layout.
Example:
if TargetCocoa then

dim t as NSTextViewMBS = TextArea1.NSTextViewMBS
dim l as NSLayoutManagerMBS = t.layoutManager

l.showsInvisibleCharacters = true

else
// not supported
break
end if
Notes:
If true, the receiver substitutes visible glyphs for invisible characters if the font and script support it; if false, it doesn't. The default is false. (from Apple framework)
(Read and Write property)

Feedback, Comments & Corrections

NSLayoutManagerMBS.textColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacCocoa Plugin 12.4 Yes No No Yes, macOS only No
Function: The text color for drawing invisible characters.
Notes:
This method is only available if the NSLayoutManagerMBS object has been created with new NSLayoutManagerMBS, so the plugin can use the special NSLayoutManager subclass with support for invisible character drawing.
(Read and Write property)

Feedback, Comments & Corrections

NSLayoutManagerMBS.textStorage as NSTextStorageMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacCocoa Plugin 12.1 Yes No No Yes, macOS only No
Function: The text storage.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSLayoutManagerMBS.usesFontLeading as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacCocoa Plugin 16.4 Yes No No Yes, macOS only No
Function: Indicates whether the receiver uses the leading provided in the font.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSLayoutManagerMBS.usesScreenFonts as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa MBS MacCocoa Plugin 12.1 Yes No No Yes, macOS only No
Function: Whether screen fonts to calculate layout and display text.
Notes:
If true, the receiver uses screen fonts; if false, it doesn't.
(Read and Write property)

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS MacCocoa Plugin.




Links
MBS Xojo Chart Plugins