Class: Layout::Pages
- Inherits:
-
Object
- Object
- Layout::Pages
- Includes:
- Enumerable
- Defined in:
- lib/sketchup-api-stubs/stubs/Layout/Pages.rb
Overview
The Pages class is a container class for all pages in a Document.
Instance Method Summary collapse
- #[](index) ⇒ Layout::Page
- #add(name = nil) ⇒ Layout::Page
- #each {|page| ... } ⇒ Object
- #index(page) ⇒ Integer?
- #initial ⇒ Layout::Page
- #initial=(page) ⇒ Object
- #length ⇒ Integer
- #remove(page) ⇒ Object
- #reorder(page, new_index) ⇒ Object
- #size ⇒ Integer
Instance Method Details
#[](index) ⇒ Layout::Page
The #[] method returns a value from the array of Layout::Pages.
39 40 |
# File 'lib/sketchup-api-stubs/stubs/Layout/Pages.rb', line 39 def [](index) end |
#add(name = nil) ⇒ Layout::Page
The #add method adds a new Layout::Page to the Document. The newly added Layout::Page will be the last one in the Document.
56 57 |
# File 'lib/sketchup-api-stubs/stubs/Layout/Pages.rb', line 56 def add(name = nil) end |
#each {|page| ... } ⇒ Object
The #each method iterates through all of the Layout::Pages.
71 72 |
# File 'lib/sketchup-api-stubs/stubs/Layout/Pages.rb', line 71 def each end |
#index(page) ⇒ Integer?
The #index method returns the index of the Layout::Page, or nil
if it doesn’t exist in the Document.
87 88 |
# File 'lib/sketchup-api-stubs/stubs/Layout/Pages.rb', line 87 def index(page) end |
#initial ⇒ Layout::Page
The #initial method returns the initial Layout::Page that will be displayed the next time the Document is opened. This value will change whenever the Layout::Page is changed in the Document in LayOut.
103 104 |
# File 'lib/sketchup-api-stubs/stubs/Layout/Pages.rb', line 103 def initial end |
#initial=(page) ⇒ Object #initial=(index) ⇒ Object
The #initial= method sets the initial Layout::Page that will be displayed the next time the Document is opened. This value will change whenever the Layout::Page is changed in the Document in LayOut.
130 131 |
# File 'lib/sketchup-api-stubs/stubs/Layout/Pages.rb', line 130 def initial=(page) end |
#length ⇒ Integer
The #length method returns the number of Layout::Pages.
143 144 |
# File 'lib/sketchup-api-stubs/stubs/Layout/Pages.rb', line 143 def length end |
#remove(page) ⇒ Object #remove(index) ⇒ Object
The #remove method deletes the given Layout::Page from the Document.
172 173 |
# File 'lib/sketchup-api-stubs/stubs/Layout/Pages.rb', line 172 def remove(page) end |
#reorder(page, new_index) ⇒ Object #reorder(index, new_index) ⇒ Object
The #reorder method moves a Layout::Page to a different index within the Document‘s list of pages. This will move the Layout::Page such that its new index becomes new_index.
200 201 |
# File 'lib/sketchup-api-stubs/stubs/Layout/Pages.rb', line 200 def reorder(page, new_index) end |
#size ⇒ Integer
The #length method returns the number of Layout::Pages.
213 214 |
# File 'lib/sketchup-api-stubs/stubs/Layout/Pages.rb', line 213 def size end |