VintaSoft Twain .NET SDK 15.4: Documentation for .NET developer
Vintasoft.Twain Namespace / KodakDeviceProfileCollection Class
Members Object Syntax Example Hierarchy Requirements SeeAlso
In This Topic
KodakDeviceProfileCollection Class
In This Topic
A collection of Kodak device profiles.
Object Model
Device KodakDeviceProfile KodakDeviceProfileCollection
Syntax
'Declaration

<DefaultMemberAttribute("Item")>
Public Class KodakDeviceProfileCollection

[DefaultMember("Item")]
public class KodakDeviceProfileCollection

Example

This C#/VB.NET code shows how to print names of all Kodak device profiles.


''' <summary>
''' Prints names of Kodak device profiles.
''' </summary>
''' <param name="device">The device.</param>
Public Shared Sub ShowKodakDeviceProfiles(device As Vintasoft.Twain.Device)
    ' create profile collection for Kodak device
    Dim profiles As New Vintasoft.Twain.KodakDeviceProfileCollection(device)

    ' print the device name
    System.Console.WriteLine("'{0}' device has {1} profiles:", device.Info.ProductName, profiles.Count)

    ' for each profile
    For i As Integer = 0 To profiles.Count - 1
        ' print the profile English name
        System.Console.WriteLine("- Profile: {0}, Name: {1}", i, profiles(i).EnglishName)
    Next
End Sub


/// <summary>
/// Prints names of Kodak device profiles.
/// </summary>
/// <param name="device">The device.</param>
public static void ShowKodakDeviceProfiles(Vintasoft.Twain.Device device)
{
    // create profile collection for Kodak device
    Vintasoft.Twain.KodakDeviceProfileCollection profiles = new Vintasoft.Twain.KodakDeviceProfileCollection(device);

    // print the device name
    System.Console.WriteLine("'{0}' device has {1} profiles:", device.Info.ProductName, profiles.Count);

    // for each profile
    for (int i = 0; i < profiles.Count; i++)
    {
        // print the profile English name
        System.Console.WriteLine("- Profile: {0}, Name: {1}", i, profiles[i].EnglishName);
    }
}

Inheritance Hierarchy

System.Object
   Vintasoft.Twain.KodakDeviceProfileCollection

Requirements

Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also