Platforms to show: All Mac Windows Linux Cross-Platform
NSTextTableBlockMBS class
Super class: NSTextBlockMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| class | Cocoa Text | MBS MacBase Plugin | 22.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Subclass of the NSTextBlockMBS class.
- 5 properties
- property columnSpan as Integer
- property rowSpan as Integer
- property startingColumn as Integer
- property startingRow as Integer
- property table as NSTextTableMBS
- 2 methods
- method Constructor Private
- method Constructor(table as NSTextTableMBS, startingRow as Integer, rowSpan as Integer, startingColumn as Integer, colSpan as Integer)
Super class NSTextBlockMBS
- 5 properties
- property backgroundColor as NSColorMBS
- property contentWidth as Double
- property contentWidthValueType as Integer
- property Handle as Integer
- property verticalAlignment as Integer
- 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
Dimension
| Constant | Value | Description |
|---|---|---|
| DimensionHeight | 4 |
Height of the text block. |
| DimensionMaximumHeight | 6 |
Maximum height of the text block. |
| DimensionMaximumWidth | 2 |
Maximum width of the text block. |
| DimensionMinimumHeight | 5 |
Minimum height of the text block. |
| DimensionMinimumWidth | 1 |
Minimum width of the text block. |
| DimensionWidth | 0 |
Width of the text block. |
Layer
| Constant | Value | Description |
|---|---|---|
| LayerBorder | 0 |
The border of the text block. |
| LayerMargin | 1 |
Margin of the text block: space surrounding the border. |
| LayerPadding | -1 |
Padding of the text block: space surrounding the content area extending to the border. |
Value Types
| Constant | Value | Description |
|---|---|---|
| ValueTypeAbsolute | 0 |
Absolute value in points. |
| ValueTypePercentage | 1 |
Percentage value (out of 100). |
Vertical Alignment
| Constant | Value | Description |
|---|---|---|
| VerticalAlignmentBaseline | 3 |
Aligns adjacent blocks at the baseline of the first line of text in the block. |
| VerticalAlignmentBottom | 2 |
Aligns adjacent blocks at their bottom. |
| VerticalAlignmentMiddle | 1 |
Aligns adjacent blocks at their middle. |
| VerticalAlignmentTop | 0 |
Aligns adjacent blocks at their top. |
This class has no sub classes.
Blog Entries
Release notes
- Version 22.0
- Added NSTextBlockMBS, NSTextTableBlockMBS and NSTextTableMBS classes.
Some related classes:
The items on this page are in the following plugins: MBS MacBase Plugin.
NSTextStorageMBS - NSTextTableMBS