Class: Notesgrip::NotesRichTextRange

Inherits:
GripWrapper show all
Defined in:
lib/notesgrip/NotesRichTextItem.rb

Overview

NotesRichTextRange Class ===============

Represents a range of elements in a rich text item.

Constant Summary collapse

5
RTELEM_TYPE_FILEATTACHMENT =
8
RTELEM_TYPE_OLE =
9
RTELEM_TYPE_SECTION =
6
RTELEM_TYPE_TABLE =
1
RTELEM_TYPE_TABLECELL =
7
RTELEM_TYPE_TEXTPARAGRAPH =
4
RTELEM_TYPE_TEXTPOSITION =
10
RTELEM_TYPE_TEXTRUN =
3
RTELEM_TYPE_TEXTSTRING =
11
RT_FIND_ACCENTINSENSITIVE =

accent insensitive search (default is accent sensitive)

4
RT_FIND_CASEINSENSITIVE =

case insensitive search (default is case sensitive)

1
RT_FIND_PITCHINSENSITIVE =

pitch insensitive search (default is pitch sensitive)

2
RT_REPL_ALL =

replace all occurrences of the search string

16
RT_REPL_PRESERVECASE =

preserve case in the replacement string

8

Instance Method Summary collapse

Methods inherited from GripWrapper

#initialize, #inspect, #raw

Constructor Details

This class inherits a constructor from Notesgrip::GripWrapper

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Notesgrip::GripWrapper

Instance Method Details

#CloneObject



180
181
182
183
# File 'lib/notesgrip/NotesRichTextItem.rb', line 180

def Clone
  raw_richTextRange = @raw_object.Clone
  NotesRichTextRange.new(raw_richTextRange)
end

#FindAndReplace(target, replacemen, options = 0) ⇒ Object



190
191
192
# File 'lib/notesgrip/NotesRichTextItem.rb', line 190

def FindAndReplace( target , replacemen, options=0 )
  @raw_object.FindAndReplace( target , replacemen, options )
end


156
157
158
159
# File 'lib/notesgrip/NotesRichTextItem.rb', line 156

def Navigator
  raw_richTextNavigator = @raw_object.Vavigator
  NotesRichTextNavigator.new(raw_richTextNavigator)
end

#RemoveObject



194
195
196
197
# File 'lib/notesgrip/NotesRichTextItem.rb', line 194

def Remove
  @raw_object.Remove
  @raw_object = nil
end

#SetBegin(element) ⇒ Object



199
200
201
202
# File 'lib/notesgrip/NotesRichTextItem.rb', line 199

def SetBegin( element )
  raw_element = toRaw(element)
  @raw_object.SetBegin(raw_element)
end

#SetEnd(element) ⇒ Object



204
205
206
207
# File 'lib/notesgrip/NotesRichTextItem.rb', line 204

def SetEnd( element )
  raw_element = toRaw(element)
  @raw_object.SetEnd(raw_element)
end

#SetStyle(style) ⇒ Object



209
210
211
212
# File 'lib/notesgrip/NotesRichTextItem.rb', line 209

def SetStyle( style )
  raw_style = toRaw(style)
  @raw_object.SetStyle(raw_style)
end

#StyleObject



161
162
163
164
# File 'lib/notesgrip/NotesRichTextItem.rb', line 161

def Style
  raw_richTextStyle = @raw_object.Stle
  NotesRichTextStyle.new(raw_richTextStyle)
end

#TypeObject



176
177
178
# File 'lib/notesgrip/NotesRichTextItem.rb', line 176

def Type
  @raw_object.Type
end