Поделиться через


Vector object

Contains a collection of values of the same type. It is used throughout the library in many different ways. The Vector object can be created using WIA.Vector as the ProgID in a call to CreateObject.

Members

The Vector object has these types of members:

Methods

The Vector object has these methods.

Method Description
Add (Vector) Inserts a new element into the Vector collection before the specified Index if Index is not 0. If Index is 0, this method appends a new element to the Vector collection.
Clear Removes all elements from the Vector.
Remove (Vector) Removes the designated element.
SetFromString Stores the String value into the Vector of bytes including the terminating null character. Value might be truncated unless Resizable is True. The string is stored as an ANSI string unless Unicode is True, in which case it is stored as a Unicode string.

Properties

The Vector object has these properties.

Property Access type Description
BinaryData
Read/write
Sets or retrieves the Vector of bytes as an array of bytes.
Count (Vector)
Read-only
Retrieves the number of members in the Vector.
Date
Read/write
Sets or retrieves the Vector of integers from a date.
ImageFile (Vector)
Read-only
Retrieves the image file thumbnail of an ImageFile object, the RGB data thumbnail of an Item object, or creates an ImageFile object from raw ARGB data. Retrieves an ImageFile object on success.
Item (Vector)
Read/write
Sets or retrieves the specified item in the Vector by position.
Picture
Read-only
Retrieves a Visual Basic picture object.
String
Read-only
Retrieves a Vector of bytes as a String.

Remarks

Note that the Vector object provides special accessor properties and methods to make it easier to access or manipulate the elements contained in a Vector object. For more information, see the reference page for the specific property or method .

For example code, see Create and Initialize a Vector Object in Shared Samples.

Creation\Access Functions

Use any of the following to retrieve a reference to the object:

SubTypeValues

FileData

ARGBData

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 R2 [desktop apps only]
Header
Wiaaut.h
IDL
Wiaaut.idl

See also

Reference

ARGBData

FileData

SubTypeValues