Class: Sketchup::LineStyles
Relationships | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Entity
|
|
Instance Chain:
self,
Enumerable,
Entity
|
|
Inherits: |
Sketchup::Entity
|
Overview
Provides access to the different line style objects in the model.
Instance Attribute Summary
Entity
- Inherited
Instance Method Summary
-
#[](name) ⇒ Sketchup::LineStyle?
The #[] method lets you retrieve a line style by name or index.
-
#[](name) ⇒ Sketchup::LineStyle?
The #[] method lets you retrieve a line style by name or index.
-
#each {|linestyle| ... } ⇒ nil
The #each method is used to iterate through all the line styles.
-
#length
Alias for #size.
-
#names ⇒ Array<String>
The #names method return the support line styles as strings.
-
#size ⇒ Integer
(also: #length)
The #size method returns the number of line styles that SketchUp supports.
-
#to_a ⇒ Array
The #to_a method returns an array of all the line styles.
Entity
- Inherited
#add_observer | The add_observer method is used to add an observer to the current object. |
#attribute_dictionaries | The attribute_dictionaries method is used to retrieve the |
#attribute_dictionary | The attribute_dictionary method is used to retrieve an attribute dictionary with a given name that is attached to an |
#delete_attribute | The |
#entityID | The entityID method is used to retrieve a unique ID assigned to an entity. |
#get_attribute | The |
#inspect | The |
#model | The model method is used to retrieve the model for the entity. |
#parent | The parent method is used to retrieve the parent of the entity. |
#persistent_id | The |
#remove_observer | The remove_observer method is used to remove an observer from the current object. |
#set_attribute | The set attribute is used to set the value of an attribute in an attribute dictionary with the given name. |
#to_s | The |
#typename | The typename method retrieves the type of the entity, which will be a string such as “Face”, “Edge”, or “Group”. |
Instance Method Details
#[](name) ⇒ Sketchup::LineStyle?
#[](index) ⇒ Sketchup::LineStyle?
The #[]
method lets you retrieve a line style by name or index.
The #at method is an alias of #[]
.
#[](name) ⇒ Sketchup::LineStyle?
#[](index) ⇒ Sketchup::LineStyle?
#each {|linestyle| ... } ⇒ nil
The #each
method is used to iterate through all the line styles.
#length
Alias for #size.
#names ⇒ Array<String>
The #names
method return the support line styles as strings.
#size ⇒ Integer
Also known as: #length
The #size
method returns the number of line styles that SketchUp supports.
#to_a ⇒ Array
The #to_a
method returns an array of all the line styles.