Vcl.AxCtrls.TPropertyPage.OleObject

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OleObject: OleVariant read FOleObject;

C++

__property System::OleVariant OleObject = {read=FOleObject};

Properties

Type Visibility Source Unit Parent
property public
Vcl.AxCtrls.pas
Vcl.AxCtrls.hpp
Vcl.AxCtrls TPropertyPage

Description

Contains a reference to the first item in the array of ActiveX controls being edited by the page.

Property pages have the ability to be "hooked up to" multiple ActiveX controls, usually by multi-selecting the ActiveX controls in the form designer, and right clicking to invoke the property pages. OleObject points to the first control in the array. To access other ActiveX controls, use the property, OleObjects.

Cast the value of OleObject to the appropriate interface, such as IUnknown or IDispatch, and use the methods of the interface to access the property values and methods of the control.

See Also