IInfoPathDataImporterFields.GetControls method
Gets a collection of IInfoPathViewControl objects for each control in the view.
Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)
Syntax
'Declaration
Sub GetControls ( _
<OutAttribute> ByRef ppEnumUnkControls As IEnumUnknown _
)
'Usage
Dim instance As IInfoPathDataImporterFields
Dim ppEnumUnkControls As IEnumUnknown
instance.GetControls(ppEnumUnkControls)
void GetControls(
out IEnumUnknown ppEnumUnkControls
)
Parameters
ppEnumUnkControls
Type: IEnumUnknownAn mshtml.IEnumUnknown collection of controls in the view.
Remarks
Use the GetControls method of the IInfoPathDataImporterFields interface to return a collection of IInfoPathViewControl objects. Each object in the collection corresponds to a control in the view of the form. Each control has various properties you can evaluate or set, like the read-only DataType and InputScopes properties, and the read/write Value property.
Use these properties in conjunction with the data from the import source to import data into an InfoPath form. The following controls in the view are enumerated (if present):
Control |
Enumerated Value |
---|---|
Text Box |
PlainText |
Rich Text Box |
RichText |
Drop-Down List Box |
DropDown |
Combo Box |
ComboBox |
List Box |
ListBox |
Date Picker |
DTPicker_DTText |
Check Box |
CheckBox |
Option Button |
OptionButton |
Bulleted List |
ListItem_Plain or ListItem_formatted |
Numbered List |
ListItem_Plain or ListItem_formatted |
Plain List |
ListItem_Plain or ListItem_formatted |
Picture |
InlineImage or LinkedImage |
Ink Picture |
InkPicture |
File Attachment |
FileAttachment |
The following controls are not enumerated (excluded from the enumeration):
Control |
---|
Section |
Optional Section |
Repeating Section |
Repeating Table |
Horizontal Repeating Table |
Master/Detail |
Expression Box |
Vertical Label |
Button |
Hyperlink |
Scrolling Region |
Choice Group |
Repeating Choice Group |
Choice Section |
Repeating Recursive Section |
Custom Controls (ActiveX) |
Multiple-Selection List Box |
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
IInfoPathDataImporterFields interface