Class: Layout::TableCell
- Inherits:
-
Object
- Object
- Layout::TableCell
- Defined in:
- lib/sketchup-api-stubs/stubs/Layout/TableCell.rb
Overview
A TableCell is a single cell from a table that contains data.
Constant Summary collapse
- ROTATION_0 =
Constants
nil
- ROTATION_180 =
Stub value.
nil
- ROTATION_270 =
Stub value.
nil
- ROTATION_90 =
Stub value.
nil
Instance Method Summary collapse
-
#data ⇒ Object
The #data method creates a copy of the FormattedText for the TableCell.
- #data=(entity) ⇒ Object
- #rotation ⇒ Integer
-
#rotation=(cell_rotation) ⇒ Object
The #rotation= method sets the rotation of a TableCell.
- #span ⇒ Array(Integer, Integer)
Instance Method Details
#data ⇒ Object
The #data method creates a copy of the FormattedText for the Layout::TableCell.
41 42 |
# File 'lib/sketchup-api-stubs/stubs/Layout/TableCell.rb', line 41 def data end |
#data=(entity) ⇒ Object
At the moment, this only works for Entitys that are FormattedTexts. However, future versions of LayOut may support other types of Entitys for Layout::TableCells, so this method cannot be assumed to always fail with inputs of other Entity types.
The #data= method sets the Entity of a Layout::TableCell. The text content and fill Style settings will be kept. The bounds and other Style settings are controlled by the Layout::Table. If the specified row and column is within a merged cell, then the merged cell itself will be affected.
74 75 |
# File 'lib/sketchup-api-stubs/stubs/Layout/TableCell.rb', line 74 def data=(entity) end |
#rotation ⇒ Integer
The #rotation method returns the rotation of a Layout::TableCell.
The rotation type can be one of the following values:
Layout::TableCell::ROTATION_0
Layout::TableCell::ROTATION_90
Layout::TableCell::ROTATION_180
Layout::TableCell::ROTATION_270
98 99 |
# File 'lib/sketchup-api-stubs/stubs/Layout/TableCell.rb', line 98 def rotation end |
#rotation=(cell_rotation) ⇒ Object
The #rotation= method sets the rotation of a Layout::TableCell.
The rotation type can be one of the following values:
Layout::TableCell::ROTATION_0
Layout::TableCell::ROTATION_90
Layout::TableCell::ROTATION_180
Layout::TableCell::ROTATION_270
127 128 |
# File 'lib/sketchup-api-stubs/stubs/Layout/TableCell.rb', line 127 def rotation=(cell_rotation) end |
#span ⇒ Array(Integer, Integer)
The #span method returns the row and column span of a Layout::TableCell. If the values returned are both 1, then it is a normal, non-merged cell. If either of the values are greater than 1, then it is a merged cell. If the values are both 0, then it is an unused cell that resides within the inner portion of another merged cell.
146 147 |
# File 'lib/sketchup-api-stubs/stubs/Layout/TableCell.rb', line 146 def span end |