るりまサーチ

最速Rubyリファレンスマニュアル検索!
66件ヒット [1-66件を表示] (0.121秒)

別のキーワード

  1. win32ole new
  2. win32ole to_s
  3. win32ole ole_type
  4. win32ole name
  5. win32ole ole_free

ライブラリ

クラス

検索結果

WIN32OLE#ole_methods -> [WIN32OLE_METHOD] (18120.0)

オブジェクトのメソッド情報をWIN32OLE_METHODの配列として返します。

...オブジェクトのメソッド情報をWIN32OLE_METHODの配列として返します。

ole_methods
メソッドは、OLEオートメーションサーバが提供するすべてのメソッ
ドをWIN32OLE_METHODの配列として返します。

@return WIN32OLE_METHODの配列。
@raise WIN32OL...
...の呼び出しに失敗しました。
型情報ライブラリ(TypeLib)が提供されていない場合などに発生します。

excel = WIN32OLE.new('Excel.Application')
methods = excel.ole_methods

@see WIN32OLE#ole_func_methods, WIN32OLE#ole_put_methods...

WIN32OLE_TYPE#ole_methods -> [WIN32OLE_METHOD] (18114.0)

型が持つメソッドのメタデータを取得します。

...ます。
メソッドを持たない場合は空配列を返します。


tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Worksheet')
methods = tobj.ole_methods.map {|m| m.name }
# => ['QueryInterface', 'AddRef', 'Release',....]

@see WIN32OLE_ME...

WIN32OLE_TYPE#default_event_sources -> [WIN32OLE_TYPE] (61.0)

型が持つソースインターフェイスを取得します。

...たない場合は空配列を返します。

tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Worksheet')
tobj.default_event_sources.map {|intf| intf.name} #=> ["DocEvents"]

WIN32OLE_EVENT.newでインターフェイス名を指定しない場合は、ここで
返さ...
...ole'

type = WIN32OLE_TYPE.new('Microsoft Internet Controls', 'InternetExplorer')
ctl = WIN32OLE.new(type.progid)
source = type.default_event_sources[0]
class WebEvent
def initialize
@completed = false
end
attr_reader :completed
end
source.ole_methods.each do |m|
WebEvent.mod...
...completed = true
end
puts "#{Time.now}: #{m.name} was called"
p arg
end
end
end
evt = WIN32OLE_EVENT.new(ctl)
evt.handler = WebEvent.new
ctl.navigate2 'http://www.ruby-lang.org/'
loop do
break if evt.handler.completed
WIN32OLE_EVENT.message_loop
end
ctl.Quit...

WIN32OLE#ole_func_methods -> [WIN32OLE_METHOD] (13.0)

オブジェクトのファンクション情報をWIN32OLE_METHODの配列として返し ます。

...発生します。

excel = WIN32OLE.new('Excel.Application')
excel.visible = true
excel.ole_func_methods.each do |fun|
if fun.name.upcase == 'QUIT'
excel._invoke(fun.dispid, [], [])
break
end
end

@see WIN32OLE#ole_methods, WIN32OLE#ole_get_methods,
WIN32OLE...

WIN32OLE#ole_get_methods -> [WIN32OLE_METHOD] (13.0)

オブジェクトの参照可能プロパティ情報をWIN32OLE_METHODの配列として 返します。

...xcel = WIN32OLE.new('Excel.Application')
excel.ole_get_methods.each do |prop|
begin
puts "#{prop.name}=#{excel._getproperty(prop.dispid, [], [])}"
rescue WIN32OLERuntimeError
puts "can't read #{prop.name} property"
end
end

@see WIN32OLE#ole_methods, WIN32OLE#ole_f...

絞り込み条件を変える

WIN32OLE#ole_put_methods -> [WIN32OLE_METHOD] (13.0)

オブジェクトの設定可能プロパティ情報をWIN32OLE_METHODの配列として 返します。

...た。
型情報ライブラリ(TypeLib)が提供されていない場合などに発生します。

excel = WIN32OLE.new('Excel.Application')
properties = excel.ole_put_methods

@see WIN32OLE#ole_methods, WIN32OLE#ole_func_methods,
WIN32OLE#ole_get_methods...