Export (0) Print
Expand All

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)

[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
[GuidAttribute("55272A00-42CB-11CE-8135-00AA004BB851")]
public interface IPropertyBag

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.

NoteNote

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.

Show:
© 2014 Microsoft