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



213
214
215
216
# File 'lib/notesgrip/NotesRichTextItem.rb', line 213

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

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



223
224
225
# File 'lib/notesgrip/NotesRichTextItem.rb', line 223

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


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

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

#RemoveObject



227
228
229
230
# File 'lib/notesgrip/NotesRichTextItem.rb', line 227

def Remove
  @raw_object.Remove
  @raw_object = nil
end

#SetBegin(element) ⇒ Object



232
233
234
235
# File 'lib/notesgrip/NotesRichTextItem.rb', line 232

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

#SetEnd(element) ⇒ Object



237
238
239
240
# File 'lib/notesgrip/NotesRichTextItem.rb', line 237

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

#SetStyle(style) ⇒ Object



242
243
244
245
# File 'lib/notesgrip/NotesRichTextItem.rb', line 242

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

#StyleObject



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

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

#TypeObject



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

def Type
  @raw_object.Type
end