Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSAttributedStringMBS class.

NSAttributedStringMBS.NSSpellingStateGrammarFlag = 1

Type Topic Plugin Version
const Cocoa Text MBS MacBase Plugin 17.4
One of the constants for spelling state.

Flag for grammar issues.

NSAttributedStringMBS.NSSpellingStateSpellingFlag = 0

Type Topic Plugin Version
const Cocoa Text MBS MacBase Plugin 17.4
One of the constants for spelling state.

Flag for spelling issues.

NSAttributedStringMBS.NSUnderlineByWord = &h8000

Type Topic Plugin Version
const Cocoa Text MBS MacBase Plugin 17.4
One of the underline constants.

Draw the line only underneath or through words, not whitespace.

NSAttributedStringMBS.NSUnderlinePatternDash = &h0200

Type Topic Plugin Version
const Cocoa Text MBS MacBase Plugin 17.4
One of the underline constants.

Draw a line of dashes.

NSAttributedStringMBS.NSUnderlinePatternDashDot = &h0300

Type Topic Plugin Version
const Cocoa Text MBS MacBase Plugin 17.4
One of the underline constants.

Draw a line of alternating dashes and dots.

NSAttributedStringMBS.NSUnderlinePatternDashDotDot = &h0400

Type Topic Plugin Version
const Cocoa Text MBS MacBase Plugin 17.4
One of the underline constants.

Draw a line of alternating dashes and two dots.

NSAttributedStringMBS.NSUnderlinePatternDot = &h0100

Type Topic Plugin Version
const Cocoa Text MBS MacBase Plugin 17.4
One of the underline constants.

Draw a line of dots.

NSAttributedStringMBS.NSUnderlinePatternSolid = 0

Type Topic Plugin Version
const Cocoa Text MBS MacBase Plugin 17.4
One of the underline constants.

Draw a solid line.

NSAttributedStringMBS.NSUnderlineStyleDouble = 9

Type Topic Plugin Version
const Cocoa Text MBS MacBase Plugin 17.4
One of the underline constants.

Draw a double line.

NSAttributedStringMBS.NSUnderlineStyleNone = 0

Type Topic Plugin Version
const Cocoa Text MBS MacBase Plugin 17.4
One of the underline constants.

Do not draw a line.

NSAttributedStringMBS.NSUnderlineStyleSingle = 1

Type Topic Plugin Version
const Cocoa Text MBS MacBase Plugin 17.4
One of the underline constants.
Example
// underline selected text in TextArea1

dim t as NSTextViewMBS = TextArea1.NSTextViewMBS
dim s as NSTextStorageMBS = t.textStorage

dim d as Dictionary = t.selectedTextAttributes
d.Value(NSAttributedStringMBS.NSStrikethroughStyleAttributeName) = s.NSUnderlineStyleSingle
t.selectedTextAttributes = d

Draw a single line.

NSAttributedStringMBS.NSUnderlineStyleThick = 2

Type Topic Plugin Version
const Cocoa Text MBS MacBase Plugin 17.4
One of the underline constants.

Draw a thick line.

NSAttributedStringMBS.NSWritingDirectionEmbedding = 0

Type Topic Plugin Version
const Cocoa Text MBS MacBase Plugin 17.4
One of the writing direction constants.

Text is embedded in text with another writing direction. For example, an English quotation in the middle of an Arabic sentence could be marked as being embedded left-to-right text.

NSAttributedStringMBS.NSWritingDirectionOverride = 1

Type Topic Plugin Version
const Cocoa Text MBS MacBase Plugin 17.4
One of the writing direction constants.

Enables character types with inherent directionality to be overridden when required for special cases, such as for part numbers made of mixed English, digits, and Hebrew letters to be written from right to left.

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


💬 Ask a question or report a problem
The biggest plugin in space...