|class||Cocoa Text||MBS MacBase Plugin||22.0||✅ Yes||❌ No||❌ No||❌ No||Desktop, Console & Web|
Notes: A text block appears as an attribute of a paragraph, and as part of the paragraph style. The most important subclass of NSTextBlockMBS is NSTextTableBlockMBS, which represents a block of text that appears as a cell in a table. The table itself is a NSTextTable object. All NSTextBlockMBS objects reference this table, which controls their sizing and positioning.
- 5 properties
- 13 methods
- method borderColor(edge as Integer) as NSColorMBS
- method Constructor
- method copy as NSTextBlockMBS
- method setBorderColor(color as NSColorMBS)
- method setBorderColor(color as NSColorMBS, edge as Integer)
- method setContentWidth(value as double, ValueType as Integer)
- method setValue(value as double, ValueType as Integer, dimension as Integer)
- method setWidth(value as double, ValueType as Integer, Layer as Integer)
- method setWidth(value as double, ValueType as Integer, Layer as Integer, edge as Integer)
- method valueForDimension(dimension as Integer) as Double
- method valueTypeForDimension(dimension as Integer) as Integer
- method width(layer as Integer, edge as Integer) as double
- method widthValueType(layer as Integer, edge as Integer) as Integer
- 15 constants
Height of the text block.
Maximum height of the text block.
Maximum width of the text block.
Minimum height of the text block.
Minimum width of the text block.
Width of the text block.
The border of the text block.
Margin of the text block: space surrounding the border.
Padding of the text block: space surrounding the content area extending to the border.
Absolute value in points.
Percentage value (out of 100).
Aligns adjacent blocks at the baseline of the first line of text in the block.
Aligns adjacent blocks at their bottom.
Aligns adjacent blocks at their middle.
Aligns adjacent blocks at their top.
Some methods using this class:
- NSAttributedStringMBS.rangeOfTextBlock(textBlock as NSTextBlockMBS, location as Integer) as NSRangeMBS
- NSMutableParagraphStyleMBS.setTextBlocks(TextBlocks() as NSTextBlockMBS)
- NSParagraphStyleMBS.textBlocks as NSTextBlockMBS()
- News from the MBS Xojo Plugins Version 22.0
- MonkeyBread Software Releases the MBS Xojo Plugins in version 22.0
- MBS Xojo Plugins, version 22.0pr7
- MBS Xojo Plugins, version 22.0pr6
Xojo Developer Magazine
The items on this page are in the following plugins: MBS MacBase Plugin.