Platforms to show: All Mac Windows Linux Cross-Platform

Back to WIAPropertyEnumeratorMBS class.

WIAPropertyEnumeratorMBS.Clone as WIAPropertyEnumeratorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Capture MBS Win Plugin 10.3 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Creates a copy of the enumerator.

Lasterror is set.

WIAPropertyEnumeratorMBS.NextItem as WIAPropertyMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Capture MBS Win Plugin 10.3 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Returns the next item.
Example
Sub ListProperties(it as WIAItemMBS, plist as listbox)
// enumerate properties into a given listbox

// clear list
PList.DeleteAllRows

// get properties
dim p as WIAPropertyStorageMBS = it.PropertyStorage
if p<>Nil then
dim e as WIAPropertyEnumeratorMBS = p.Enumerate

if e<>nil then
dim ps as WIAPropertyMBS = e.NextItem

while ps<>Nil
// read the property value
dim v as Variant = p.Read(ps)

// get some identifier string for the listbox, name or id
dim k as string = ps.Name
if len(k)=0 then
k = str(ps.ID)
end if

PList.AddRow k

if v.Type = v.TypeObject then
if v isa WIAGUIDMBS then
dim g as WIAGUIDMBS = v
PList.Cell(PList.LastIndex,1)=g.DisplayString
else
PList.Cell(PList.LastIndex,1)="? some object" // should never happen
end if
else
PList.Cell(PList.LastIndex,1)=v.StringValue
end if

ps = e.NextItem
wend

end if
end if
End Sub

Lasterror is set.

WIAPropertyEnumeratorMBS.Reset

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Capture MBS Win Plugin 10.3 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Resets the enumerator.

Lasterror is set.

WIAPropertyEnumeratorMBS.Skip(celt as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Image Capture MBS Win Plugin 10.3 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Skips the next items.

Lasterror is set.

The items on this page are in the following plugins: MBS Win Plugin.


The biggest plugin in space...