3.6.1.3 ocxPr (Object Property)

This element specifies the name and value of a persisting property of the parent object persisted using the method persistPropertyBag. Property values are converted into VT_BSTR using the Windows OLE API VariantChangeType() before getting stored in this element.

Parent Elements

font3.6.1.1, font); ocx3.6.1.2, ocx)

Child Elements

Subclause

font (Standard COM Font Object)

§3.6.1.1, font

picture (Standard COM Picture Object)

§3.6.1.4, picture

Attributes

Description

name (ActiveX Control Property Name)

Specifies the name of the property. This name shall be unique in its collection.

The possible values for this attribute are defined by the ST_String simple type (§3.6.2.2, ST_String).

value (ActiveX Control Property Value)

Specifies the value of the property. The actual property values are converted into VT_BSTR using the Windows OLE API VariantChangeType() before getting stored in this element. And corresponding string is stored as the value.

This is attribute is only permitted for ocxPr elements (§3.6.1.3, ocxPr) without a font (§3.6.1.1, font) or picture sub-element (§3.6.1.4, picture).

The possible values for this attribute are defined by the ST_String simple type (§3.6.2.2, ST_String).

The following XML Schema fragment defines the contents of this element:

 <complexType name="CT_OcxPr">
   <sequence>
     <choice>
       <element name="font" type="CT_Font" maxOccurs="1" minOccurs="0"/>
       <element name="picture" type="CT_Picture" maxOccurs="1" minOccurs="0"/>
     </choice>
   </sequence>
   <attribute name="name" type="ST_String" use="required"/>
   <attribute name="value" type="ST_String"/>
 </complexType>