Class: Layout::TableRow

Inherits:
Object
  • Object
show all
Defined in:
lib/sketchup-api-stubs/stubs/Layout/TableRow.rb

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 Method Summary collapse

Instance Method Details

#bottom_edge_styleLayout::Style

The #bottom_edge_style method returns the Style of a Layout::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

Returns:

Version:

  • LayOut 2018



33
34
# File 'lib/sketchup-api-stubs/stubs/Layout/TableRow.rb', line 33

def bottom_edge_style
end

#bottom_edge_style=(style) ⇒ Object

The #bottom_edge_style= method sets the Style of a Layout::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



56
57
# File 'lib/sketchup-api-stubs/stubs/Layout/TableRow.rb', line 56

def bottom_edge_style=(style)
end

#heightFloat

The #height method returns the height of the Layout::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

Returns:

  • (Float)

Version:

  • LayOut 2018



71
72
# File 'lib/sketchup-api-stubs/stubs/Layout/TableRow.rb', line 71

def height
end

#height=(height) ⇒ Object

The #height= method sets the height of the Layout::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



93
94
# File 'lib/sketchup-api-stubs/stubs/Layout/TableRow.rb', line 93

def height=(height)
end

#top_edge_styleLayout::Style

The #top_edge_style method returns the Style of a Layout::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

Returns:

Version:

  • LayOut 2018



109
110
# File 'lib/sketchup-api-stubs/stubs/Layout/TableRow.rb', line 109

def top_edge_style
end

#top_edge_style=(style) ⇒ Object

The #top_edge_style= method sets the Style of a Layout::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



132
133
# File 'lib/sketchup-api-stubs/stubs/Layout/TableRow.rb', line 132

def top_edge_style=(style)
end