Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSTextBlockMBS class.

NSTextBlockMBS.borderColor(edge as Integer) as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Text MBS MacBase Plugin 22.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the border color of the specified text block edge.

edge: The edge of the text block in question.

NSTextBlockMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Text MBS MacBase Plugin 22.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Initializes and returns an empty text block object.

NSTextBlockMBS.copy as NSTextBlockMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Text MBS MacBase Plugin 22.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Creates a copy of this object.

NSTextBlockMBS.setBorderColor(color as NSColorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Text MBS MacBase Plugin 22.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Sets the color of all borders of the text block.

This setting has no visible effect unless the border width is larger than the default, which is 0.

See also:

NSTextBlockMBS.setBorderColor(color as NSColorMBS, edge as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Text MBS MacBase Plugin 22.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Sets the border color of the specified edge of the text block.

color: The new color.
edge: The edge whose color is to be set.

This setting has no visible effect unless the border width is larger than the default, which is 0.

See also:

NSTextBlockMBS.setContentWidth(value as double, ValueType as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Text MBS MacBase Plugin 22.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Sets the width of the text block.

value: The new value for the width.
ValueType: The type of value being provided. This controls how val is interpreted.

NSTextBlockMBS.setValue(value as double, ValueType as Integer, dimension as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Text MBS MacBase Plugin 22.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Sets a dimension of the text block.

value: The new value for the dimension.
ValueType: The type of value being provided. This controls how value is interpreted.
dimension: The dimension to set.

NSTextBlockMBS.setWidth(value as double, ValueType as Integer, Layer as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Text MBS MacBase Plugin 22.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Sets the width of all edges of a specified layer of the text block.

value: The new value for the specified edge width.
type: The type of value being provided. This controls how val is interpreted.
layer: The layer of the text block to modify.

See also:

NSTextBlockMBS.setWidth(value as double, ValueType as Integer, Layer as Integer, edge as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Text MBS MacBase Plugin 22.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Sets the width of all edges of a specified layer of the text block.

value: The new value for the specified edge width.
type: The type of value being provided. This controls how val is interpreted.
layer: The layer of the text block to modify.
edge: The edge of the layer to examine.

See also:

NSTextBlockMBS.valueForDimension(dimension as Integer) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Text MBS MacBase Plugin 22.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the value of the specified text block dimension.

The value for the specified dimension. This value should be interpreted according to the value type returned by valueTypeForDimension.

NSTextBlockMBS.valueTypeForDimension(dimension as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Text MBS MacBase Plugin 22.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the value type of the specified text block dimension.

The value type for the specified text block dimension. This result determines how the value for the dimension should be interpreted.

NSTextBlockMBS.width(layer as Integer, edge as Integer) as double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Text MBS MacBase Plugin 22.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the width of an edge of a specified layer of the text block.

layer: The layer to examine.
edge: The edge of the layer to examine.

Returns The width of the edge of layer. This value must be interpreted according to the value type returned by widthValueTypeForLayer().

NSTextBlockMBS.widthValueType(layer as Integer, edge as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Text MBS MacBase Plugin 22.0 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the value type of an edge of a specified layer of the text block.

layer: The layer to examine.
edge: The edge of the layer to examine.

Returns the value type of the edge of layer. This determines how the value for this edge of layer should be interpreted.

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


The biggest plugin in space...