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

Previous items

NSAttributedStringMBS.NSTextEncodingNameDocumentOption as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the attribute names for NSAttributedString.
Notes:
string containing the name, IANA or otherwise, of a text encoding to override any encoding specified in an HTML document. Mutually exclusive with @"CharacterEncoding". Previous string constant was @"TextEncodingName".
Available in Mac OS X v10.4 and later.

Feedback, Comments & Corrections

NSAttributedStringMBS.NSTextLayoutSectionOrientation as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the constants used as by the NSLayoutOrientationSectionsAttribute.
Notes:
An Number containing an NSTextLayoutOrientation value. The default value is NSTextLayoutOrientationHorizontal.
Available in Mac OS X v10.7 and later.

Feedback, Comments & Corrections

NSAttributedStringMBS.NSTextLayoutSectionRange as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the constants used as by the NSLayoutOrientationSectionsAttribute.
Notes:
An NSValue containing an NSRange representing a character range. The default value is a range covering the entire string.
Available in Mac OS X v10.7 and later.

Feedback, Comments & Corrections

NSAttributedStringMBS.NSTextLayoutSectionsAttribute as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the attribute names for NSAttributedString.
Notes:
An Array containing dictionarys. Each dictionary describes a layout orientation section. The dictionary can have two attributes: NSTextLayoutSectionOrientation and NSTextLayoutSectionRange. When there is a gap between sections, it's assumed to have NSTextLayoutOrientationHorizontal.
Available in Mac OS X v10.7 and later.

Feedback, Comments & Corrections

NSAttributedStringMBS.NSTextSizeMultiplierDocumentOption as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the attribute names for NSAttributedString.
Notes:
Specifies a scale factor for font sizes.. Number containing float, default 1.0; for HTML only, corresponding to WebView's textSizeMultiplier.
There is no textual equivalent for Mac OS X v10.3.
Available in Mac OS X v10.4 and later.

Feedback, Comments & Corrections

NSAttributedStringMBS.NSTimeoutDocumentOption as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the attribute names for NSAttributedString.
Notes:
Number containing float. Time in seconds to wait for a document to finish loading. Previous string constant was @"Timeout".
Available in Mac OS X v10.4 and later.

Feedback, Comments & Corrections

NSAttributedStringMBS.NSTitleDocumentAttribute as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the names for document wide attributes in a NSAttributedString.
Notes:
string containing document title.
Available in Mac OS X v10.4 and later.

Feedback, Comments & Corrections

NSAttributedStringMBS.NSToolTipAttributeName as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the attribute names for NSAttributedString.
Notes:
string
Default nil, no tooltip
Available in Mac OS X v10.3 and later.

Feedback, Comments & Corrections

NSAttributedStringMBS.NSTopMarginDocumentAttribute as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the names for document wide attributes in a NSAttributedString.
Notes:
Number, containing a float, in points.
Mac OS X v10.3 and earlier string constant is "TopMargin".
Available in Mac OS X v10.4 and later.

Feedback, Comments & Corrections

NSAttributedStringMBS.NSUnderlineColorAttributeName as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the attribute names for NSAttributedString.
Notes:
NSColor
Default nil, same as foreground color
Available in Mac OS X v10.3 and later.

Feedback, Comments & Corrections

NSAttributedStringMBS.NSUnderlineStyleAttributeName as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the attribute names for NSAttributedString.
Notes:
Number containing integer
Default 0, no underline. See "Underlining Patterns", "Underlining Styles", and "Underline Masks" in Apple Documentation for mask values.

Feedback, Comments & Corrections

NSAttributedStringMBS.NSVerticalGlyphFormAttributeName as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the attribute names for NSAttributedString.
Notes:
An Number containing an integer value, 0 means horizontal text and 1 indicates vertical text. If no value specified, it's interpreted to determine the setting based on higher-level vertical orientation settings such as NSTextLayoutOrientation . The behavior for any other value is undefined.
Available in Mac OS X v10.7 and later.

Feedback, Comments & Corrections

NSAttributedStringMBS.NSViewModeDocumentAttribute as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the names for document wide attributes in a NSAttributedString.
Notes:
NSValue, containing an int; 0 = normal; 1 = page layout (use value of "PaperSize").
Mac OS X v10.3 and earlier string constant is "ViewMode".
Available in Mac OS X v10.4 and later.

Feedback, Comments & Corrections

NSAttributedStringMBS.NSViewSizeDocumentAttribute as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the names for document wide attributes in a NSAttributedString.
Notes:
NSValue, containing NSSize.
Mac OS X v10.3 and earlier string constant is "ViewSize".
Available in Mac OS X v10.4 and later.

Feedback, Comments & Corrections

NSAttributedStringMBS.NSViewZoomDocumentAttribute as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the names for document wide attributes in a NSAttributedString.
Notes:
Mac OS X v10.3 and earlier string constant is "ViewZoom".
NSValue, containing a float; 100 = 100% zoom.
Available in Mac OS X v10.4 and later.

Feedback, Comments & Corrections

NSAttributedStringMBS.NSWebArchiveTextDocumentType as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the values for the NSDocumentTypeDocumentAttribute key in the document attributes dictionary.
Notes: Web Kit WebArchive document.

Feedback, Comments & Corrections

NSAttributedStringMBS.NSWebPreferencesDocumentOption as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the attribute names for NSAttributedString.
Notes:
WebPreferences; for HTML only, specifies a WebPreferences object. If not present, a default set of preferences is used. Previous string constant was @"WebPreferences".
Available in Mac OS X v10.4 and later.

Feedback, Comments & Corrections

NSAttributedStringMBS.NSWebResourceLoadDelegateDocumentOption as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the attribute names for NSAttributedString.
Notes:
WebResourceLoadDelegateMBS; for HTML only, specifies an object to serve as the web resource loading delegate.
If not present, a default delegate is used that permits the loading of subsidiary resources but does not respond to authentication challenges. Previous string constant was @"WebResourceLoadDelegate".
Available in Mac OS X v10.4 and later.

Feedback, Comments & Corrections

NSAttributedStringMBS.NSWordMLTextDocumentType as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the values for the NSDocumentTypeDocumentAttribute key in the document attributes dictionary.
Notes: Microsoft Word XML (WordML schema) document.

Feedback, Comments & Corrections

NSAttributedStringMBS.NSWritingDirectionAttributeName as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the attribute names for NSAttributedString.
Example:
const NSWritingDirectionNatural       = -1   // Determines direction using the Unicode Bidi Algorithm rules P2 and P3
const NSWritingDirectionLeftToRight = 0 // Left to right writing direction
const NSWritingDirectionRightToLeft = 1 // Right to left writing direction

const NSTextWritingDirectionEmbedding = 0
const NSTextWritingDirectionOverride = 2

dim t as NSTextStorageMBS = TextArea1.NSTextViewMBS.textStorage

// get hello in arabic
dim a as NSAttributedStringMBS = NSAttributedStringMBS.attributedStringWithString("مرحبا")
dim m as NSMutableAttributedStringMBS = a.mutableCopy

// now set attributes for right to left
m.addAttribute t.NSWritingDirectionAttributeName, array(NSWritingDirectionRightToLeft+NSTextWritingDirectionOverride), new NSRangeMBS(0,m.Length)

// and add to textarea
t.appendAttributedString m
Notes:
An Array of Numbers.
This provides a means to override the default bidi algorithm, equivalent to the use of bidi control characters LRE, RLE, LRO, or RLO paired with PDF, as a higher-level attribute. This is the NSAttributedString equivalent of HTML's dir attribute and/or BDO element. The array represents nested embeddings or overrides, in order from outermost to innermost. The values of the Numbers should be 0, 1, 2, or 3, for LRE, RLE, LRO, or RLO respectively; these should be regarded as NSWritingDirectionLeftToRight or NSWritingDirectionRightToLeft plus NSTextWritingDirectionEmbedding or NSTextWritingDirectionOverride.
Available in Mac OS X v10.6 and later.

Feedback, Comments & Corrections

Previous items

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




Links
MBS Xojo Chart Plugins