Method: Autocad::Drawing#text_styles

Defined in:
lib/autocad/drawing.rb

#text_styles {|TextStyle| ... } ⇒ Enumerator<TextStyle>

Get all text styles in the drawing &: (TextStyle) -> void

Examples:

Find a specific text style

romans = drawing.text_styles.find { |ts| ts.name == "Romans" }

Yields:

  • (TextStyle)

    Optional block to process each text style

Returns:



610
611
612
613
# File 'lib/autocad/drawing.rb', line 610

def text_styles
  return to_enum(__callee__) unless block_given?
  ole_obj.TextStyles.each { |o| yield app.wrap(o) }
end