font (Standard COM Font Object)

This element specifies the details of StdFont object (classid CLSID_StdFont, interface IFont) embedded in the property bag (IPersistPropertyBag interface) of an ActiveX control.

[Example: Consider a font object named "FontPropName" embedded in an ActiveX control.

<ax:ocx ....>

    <ax:ocxPr name="FontPropName">

        <ax:font ax:persistence="persistPropertyBag">

            <ax:ocxPr ax:name="Name" ax:value="MS Shell Dlg"/>

            <ax:ocxPr ax:name="Size" ax:value="12"/>

            <ax:ocxPr ax:name="Charset" ax:value="0"/>

            <ax:ocxPr ax:name="Weight" ax:value="400"/>

            <ax:ocxPr ax:name="Underline" ax:value="0"/>

            <ax:ocxPr ax:name="Italic" ax:value="0"/>

            <ax:ocxPr ax:name="Strikethrough" ax:value="0"/>




In this example, the persistence attribute specifies that various properties of the embedded font object are stored using the method persistPropertyBag. The property bag is stored as a collection of child ocxPr elements. Each ocxPr element contains a single property. end example]

More information about the details of StdFont object can be found in the Office Forms Binary File Format Structure Specification ("[MS-OFORMS] Section 2.4.9").

Parent Elements

ocxPr3.6.1.3, ocxPr)

Child Elements


ocxPr (Object Property)

§, ocxPr



persistence (Font Object Property Persistence Style (optional))

Specifies the method used to store properties of the parent element.

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

id ()

Namespace: .../officeDocument/2006/relationships

Specifies the relationship ID of the relationship to the font object. The specified relationship shall be of type http://schemas.microsoft.com/office/2006/relationships/activeXControlBinary.

The target of the relationship points to the internal location where the persisted font data is stored using the IPersistStream, IPersistStreamInit, or IPersistStorage interface, as indicated by the persistence attribute or as determined by the default interface query sequence.

The possible values for this attribute are defined by the ST_RelationshipId simple type ("[ISO/IEC-29500-1] §").

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

 <complexType name="CT_Font">
     <element name="ocxPr" type="CT_OcxPr" minOccurs="0" maxOccurs="unbounded"/>
   <attribute name="persistence" type="ST_Persistence"/>
   <attribute ref="r:id" use="optional"/>