本文簡要介紹ruby語言中 WIN32OLE_TYPE.new
的用法。
用法
new(typelib, ole_class) → WIN32OLE_TYPE object
返回一個新的 WIN32OLE_TYPE
對象。第一個參數typelib
指定 OLE 類型庫名稱。第二個參數指定 OLE 類名。
WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Application')
# => WIN32OLE_TYPE object of Application class of Excel.
相關用法
- Ruby WIN32OLE_TYPE#src_type用法及代碼示例
- Ruby WIN32OLE_TYPE#typekind用法及代碼示例
- Ruby WIN32OLE_TYPE#source_ole_types用法及代碼示例
- Ruby WIN32OLE_TYPE#default_event_sources用法及代碼示例
- Ruby WIN32OLE_TYPE#helpcontext用法及代碼示例
- Ruby WIN32OLE_TYPELIB#library_name用法及代碼示例
- Ruby WIN32OLE_TYPELIB#major_version用法及代碼示例
- Ruby WIN32OLE_TYPE#helpfile用法及代碼示例
- Ruby WIN32OLE_TYPELIB#ole_types用法及代碼示例
- Ruby WIN32OLE_TYPE#helpstring用法及代碼示例
- Ruby WIN32OLE_TYPE#ole_methods # the array of WIN32OLE_METHOD objects.用法及代碼示例
- Ruby WIN32OLE_TYPE#variables用法及代碼示例
- Ruby WIN32OLE_TYPELIB#minor_version用法及代碼示例
- Ruby WIN32OLE_TYPELIB#inspect用法及代碼示例
- Ruby WIN32OLE_TYPE#implemented_ole_types用法及代碼示例
- Ruby WIN32OLE_TYPE#ole_typelib用法及代碼示例
- Ruby WIN32OLE_TYPE#guid用法及代碼示例
- Ruby WIN32OLE_TYPELIB#path用法及代碼示例
- Ruby WIN32OLE_TYPELIB.new用法及代碼示例
- Ruby WIN32OLE_TYPE#inspect用法及代碼示例
- Ruby WIN32OLE_TYPELIB#version用法及代碼示例
- Ruby WIN32OLE_TYPE#minor_version用法及代碼示例
- Ruby WIN32OLE_TYPELIB.typelibs用法及代碼示例
- Ruby WIN32OLE_TYPE#progid用法及代碼示例
- Ruby WIN32OLE_TYPE#major_version用法及代碼示例
注:本文由純淨天空篩選整理自ruby-lang.org大神的英文原創作品 WIN32OLE_TYPE.new。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。