編輯

共用方式為


IPropertyBag Interface

Definition

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

public interface class IPropertyBag
[System.Runtime.InteropServices.Guid("55272A00-42CB-11CE-8135-00AA004BB851")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IPropertyBag
type IPropertyBag = interface
Public Interface IPropertyBag
Attributes

Remarks

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

PageSizeReturns an unparsed string corresponding to the current page size, such as "A4", "B4", "Letter", and so on.
TopMarginThe size of the top margin.
BottomMarginThe size of the bottom margin.
LeftMarginThe size of the left margin.
RightMarginThe size of the right margin.
MarginUnitsTypeThe 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

Methods

RemoteRead(String, Object, IErrorLog, UInt32, Object)

Used to read printer settings for populating an IPropertyBag object in a custom data importer.

Write(String, Object)

Available to the implementation of the IPropertyBag interface of a custom data importer, but always returns E_ACCESSDENIED.

Applies to