123456789_123456789_123456789_123456789_123456789_

Class: Layout::TableRow

Relationships
Inherits: Object

Overview

A TableColumn is a single row from a table.

Examples:

bounds = Geom::Bounds2d.new(1, 1, 4, 4)
rows = 4
columns = 4
table = Layout::Table.new(bounds, rows, columns)
rows.times { |index|
  row = table.row(index)
}

Version:

  • LayOut 2018

Instance Attribute Summary

Instance Attribute Details

#bottom_edge_styleLayout::Style (rw)

The #bottom_edge_style method returns the Style of a TableRow‘s bottom edge.

Examples:

bounds = Geom::Bounds2d.new(1, 1, 4, 4)
rows = 4
columns = 4
table = Layout::Table.new(bounds, rows, columns)
style = table.get_row(1).bottom_edge_style

Version:

  • LayOut 2018

#bottom_edge_style=(style) (rw)

The #bottom_edge_style= method sets the Style of a TableRow‘s bottom edge.

Examples:

bounds = Geom::Bounds2d.new(1, 1, 4, 4)
rows = 4
columns = 4
table = Layout::Table.new(bounds, rows, columns)
style = Layout::Style.new
style.stroke_width = 2.0
table.get_row(1).bottom_edge_style = style

Parameters:

Raises:

Version:

  • LayOut 2018

#heightFloat (rw)

The #height method returns the height of the TableRow.

Examples:

bounds = Geom::Bounds2d.new(1, 1, 4, 4)
rows = 4
columns = 4
table = Layout::Table.new(bounds, rows, columns)
height = table.get_row(1).height

Version:

  • LayOut 2018

#height=(height) (rw)

The #height= method sets the height of the TableRow.

Examples:

bounds = Geom::Bounds2d.new(1, 1, 4, 4)
rows = 4
columns = 4
table = Layout::Table.new(bounds, rows, columns)
table.get_row(1).height = 3.0

Parameters:

  • height (Float)

Raises:

Version:

  • LayOut 2018

#top_edge_styleLayout::Style (rw)

The #top_edge_style method returns the Style of a TableRow‘s top edge.

Examples:

bounds = Geom::Bounds2d.new(1, 1, 4, 4)
rows = 4
columns = 4
table = Layout::Table.new(bounds, rows, columns)
style = table.get_row(1).top_edge_style

Version:

  • LayOut 2018

#top_edge_style=(style) (rw)

The #top_edge_style= method sets the Style of a TableRow‘s top edge.

Examples:

bounds = Geom::Bounds2d.new(1, 1, 4, 4)
rows = 4
columns = 4
table = Layout::Table.new(bounds, rows, columns)
style = Layout::Style.new
style.stroke_width = 2.0
table.get_row(1).top_edge_style = style

Parameters:

Raises:

Version:

  • LayOut 2018