Share via


IPropertyBag Interface

Implemented to create a read-only object to contain printer settings for passing to the Import method of a custom data importer.

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

Syntax

'Declaration
<GuidAttribute("55272A00-42CB-11CE-8135-00AA004BB851")> _
<InterfaceTypeAttribute()> _
Public Interface IPropertyBag
'Usage
Dim instance As IPropertyBag
[GuidAttribute("55272A00-42CB-11CE-8135-00AA004BB851")]
[InterfaceTypeAttribute()]
public interface IPropertyBag

Remarks

An implementation of the IPropertyBag interface should expose the following values.

Value

Description

PageSize

Returns an unparsed string corresponding to the current page size, such as "A4", "B4", "Letter", and so on.

TopMargin

The size of the top margin.

BottomMargin

The size of the bottom margin.

LeftMargin

The size of the left margin.

RightMargin

The size of the right margin.

MarginUnitsType

The type of unit used for measuring margins.

Note

These values will not be available if the user has no installed printers.

A custom data importer is created by implementing the IInfoPathDataImporter interface. For more information about programmatically importing data into an InfoPath form, see the InfoPath Developer Portal on the Microsoft Office Developer Center.

See Also

Reference

IPropertyBag Members

Microsoft.Office.Interop.InfoPath Namespace