SketchUp  Ruby API Reference 

Class Index

Method Index

Developers Guide

Examples

Style class

The Style class contains methods for modifying information about a specific style.

Parent:

Methods: description, description=, name, name=

Example Code:

Instance Methods


description

The description is used to retrieve the description for a style.

Syntax

description = style.description

Return Value

description - the description for the style.

Example

 

 


description=

The description= method is used to set a description for a style.

Syntax

status = style.description=description

Arguments

description - a textual description of the style.

Return Value

status - true if successful, false if unsuccessful.

Example

 

 

name

The name method is used to retrieve the name for a style.

Syntax

name = style.name

Return Value

name - the name for the style.

Example

 

 

name=

The name= method is used to set a name for a style.

Syntax

status = style.name=name

Arguments

name - a textual name of the style.

Return Value

status - true if successful, false if unsuccessful.

Example

 

SketchUp  Ruby API Reference: Style class

© Google Inc. 2006 sketchup.google.com