[This is preliminary documentation and is subject to change.]
Imports items from one ImageList..::..ImageCollection to another
Namespace: Tools.CollectionsT.SpecializedTAssembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
public static void Import( this ImageList..::..ImageCollection Collection, ImageList..::..ImageCollection Other ) |
| Visual Basic |
|---|
<ExtensionAttribute> _ Public Shared Sub Import ( _ Collection As ImageList..::..ImageCollection, _ Other As ImageList..::..ImageCollection _ ) |
| Visual C++ |
|---|
[ExtensionAttribute] public: static void Import( ImageList..::..ImageCollection^ Collection, ImageList..::..ImageCollection^ Other ) |
| F# |
|---|
static member Import : Collection:ImageList..::..ImageCollection * Other:ImageList..::..ImageCollection -> unit |
| JScript |
|---|
public static function Import( Collection : ImageList..::..ImageCollection, Other : ImageList..::..ImageCollection ) |
Parameters
- Collection
- Type: System.Windows.Forms..::..ImageList..::..ImageCollection
Target collection
- Other
- Type: System.Windows.Forms..::..ImageList..::..ImageCollection
Source collection; can be null
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type ImageList..::..ImageCollection. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Remarks
When key exists in both, Collection and Other, it is skipped
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | Collection is null |