Class: Sketchup::Text
Relationships | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Drawingelement ,
Entity
|
|
Instance Chain:
self,
Drawingelement ,
Entity
|
|
Inherits: |
Sketchup::Drawingelement
|
Overview
The Text class contains method to manipulate a Text
entity object.
Instance Attribute Summary
-
#arrow_type ⇒ Integer
rw
The arrow_type method retrieves the current arrow type used for the leader text.
-
#arrow_type=(type) ⇒ Integer
rw
The arrow_type= method sets the arrow type used for leader text.
-
#attached_to ⇒ Array(Sketchup::InstancePath, Geom::Point3d)?
rw
The #attached_to method returns an array of the attached
InstancePath
object and the::Geom::Point3d
. -
#attached_to=(path)
rw
The #attached_to= method will attach the
Text
to anotherSketchup::DrawingElement
. -
#display_leader=(status) ⇒ Boolean
rw
The display_leader= method accepts true or false for whether to display the leader.
-
#display_leader? ⇒ Boolean
rw
The display_leader? method returns the status of the leader.
-
#has_leader? ⇒ Boolean
readonly
The has_leader method is used to determine if the
Text
object has a leader. -
#leader_type ⇒ Integer
rw
The leader_type method retrieves the currently set leader type.
-
#leader_type=(type) ⇒ Integer
rw
The leader_type = method sets the leader type.
-
#line_weight ⇒ Integer
rw
The line_weight method returns a line weight in number of pixels.
-
#line_weight=(weight) ⇒ Integer
rw
The line_weight= method sets the line weight in pixels.
-
#point ⇒ Geom::Point3d
rw
The point method is used to get the point associated with the text.
-
#point=(point3d) ⇒ Geom::Point3d
rw
The point= method is used to set the point associated with the text.
-
#text ⇒ String
rw
The text method is used to retrieve the string version of a
Text
object. -
#text=(textstring) ⇒ String
rw
The text= method is used to set the string version of a
Text
object. -
#vector ⇒ Geom::Vector3d
rw
The vector method is used to get the vector associated with the text.
-
#vector=(vector) ⇒ Geom::Vector3d
rw
The vector= method is used to set the vector associated with the text.
Drawingelement
- Inherited
#casts_shadows= | The casts_shadows= method is used to set the |
#casts_shadows? | The casts_shadows? method is used to determine if the |
#hidden= | The hidden= method is used to set the hidden status for an element. |
#hidden? | The hidden? method is used to determine if the element is hidden. |
#layer | The layer method is used to retrieve the |
#layer= | The layer= method is used to set the layer for the drawing element. |
#material | The material method is used to retrieve the material for the drawing element. |
#material= | The material= method is used to set the material for the drawing element. |
#receives_shadows= | The receive_shadows= method is used to set the |
#receives_shadows? | The receive_shadows? method is used to determine if the |
#visible= | The visible= method is used to set the visible status for an element. |
#visible? | The visible? method is used to get the visible status for an element. |
Entity
- Inherited
Instance Method Summary
-
#set_text(textstring) ⇒ Sketchup::Text
The set_text method is used to set the text within a
Text
object without recording an Undo operation.
Drawingelement
- Inherited
#bounds | The |
#erase! | The |
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 Attribute Details
#arrow_type ⇒ Integer
(rw)
The arrow_type method retrieves the current arrow type used for the leader text.
Valid arrow types are 0 for none, 2 for dot, 3 for closed arrow, 4 for open arrow.
#arrow_type=(type) ⇒ Integer
(rw)
The arrow_type= method sets the arrow type used for leader text.
Valid arrow types are 0 for none, 2 for dot, 3 for closed arrow, 4 for open arrow.
#attached_to ⇒ Array(Sketchup::InstancePath, Geom::Point3d)? (rw)
The #attached_to
method returns an array of the attached InstancePath
object and the ::Geom::Point3d
.
#attached_to=(path) (rw)
The #attached_to=
method will attach the Text
to another Sketchup::DrawingElement
.
#display_leader=(status) ⇒ Boolean
(rw)
The display_leader= method accepts true or false for whether to display the leader.
Leader text that is not displayed is set to Hidden type.
#display_leader? ⇒ Boolean
(rw)
The display_leader? method returns the status of the leader.
#has_leader? ⇒ Boolean
(readonly)
The has_leader method is used to determine if the Text
object has a leader.
#leader_type ⇒ Integer
(rw)
The leader_type method retrieves the currently set leader type.
#leader_type=(type) ⇒ Integer
(rw)
The leader_type = method sets the leader type.
Valid leader types are 0 for none, 1 for View-based, and 2 for Pushpin
#line_weight ⇒ Integer
(rw)
The line_weight method returns a line weight in number of pixels.
Defalt line weight is 1.
#line_weight=(weight) ⇒ Integer
(rw)
The line_weight= method sets the line weight in pixels.
Default line weight is 1.
#point ⇒ Geom::Point3d (rw)
The point method is used to get the point associated with the text.
#point=(point3d) ⇒ Geom::Point3d (rw)
The point= method is used to set the point associated with the text.
#text ⇒ String (rw)
The text method is used to retrieve the string version of a Text
object.
#text=(textstring) ⇒ String (rw)
The text= method is used to set the string version of a Text
object.
#vector ⇒ Geom::Vector3d (rw)
The vector method is used to get the vector associated with the text.
#vector=(vector) ⇒ Geom::Vector3d (rw)
The vector= method is used to set the vector associated with the text.
Instance Method Details
#set_text(textstring) ⇒ Text
The set_text method is used to set the text within a Text
object without recording an Undo operation.