# Class: EnfEditor::EEAnnoNote

Inherits:
  EEAnnotation
  - Object
  - EEBase
  - EEElement
  - EEAttribute
  - EEAnnoBase
  - EEAnnotation
  - EnfEditor::EEAnnoNote
  show all

Defined in:
  lib/enfeditor/core_ext/ee_anno_note.rb,
  ext/enfhandler/EnfHandler_wrap2.cxx

## Overview

Proxy of C++ EnfEditor::EEAnnoNote class

## Instance Method Summary collapse

- #label_text_string ⇒ String

  Returns note label text.

- #label_text_string=(note_text) ⇒ Object

  Setter for Note label text.

### Methods inherited from EEAnnotation

#annotation_type, #cast, #layer_number, #layer_number=, #name, #name=, #rgba, #rgba=, #set_color_all, #visible, #visible=

### Methods inherited from EEElement

#delete!

### Methods inherited from EEBase

#null?

## Instance Method Details

### #label_text_string ⇒ `String`

Returns note label text

Examples:

    note.label_text_string #=> "Note Text"

Returns:

- (`String`) —

  Returns note label text

Since:

- 1.0.0.0

    23
    24
    25
    26
    # File 'lib/enfeditor/core_ext/ee_anno_note.rb', line 23

    def label_text_string
      return "" if label_text.nil?
      return label_text.string
    end

### #label_text_string=(note_text) ⇒ `Object`

Setter for Note label text

Examples:

    note.label_text_string = "Note Text Mod"

Parameters:

- note_text (`String`) —

  Note label text

Since:

- 1.0.0.0

    34
    35
    36
    37
    38
    39
    40
    # File 'lib/enfeditor/core_ext/ee_anno_note.rb', line 34

    def label_text_string= (note_text)
      text = label_text
      if text.nil?
        text = create_label_text
      end
      text.string = note_text
    end