This project has moved. For the latest updates, please go here.

Saraff.Twain version of TWContainer

Apr 30, 2015 at 10:14 PM
In Twain I can call GetAvailableIBrightness which returns TWContainer. Need to call RangeStep, RangeMax and RangeMin. What is the equivalent Twain object TWContainer in Saraff.Twain?

Thank you.
Coordinator
May 1, 2015 at 10:56 AM
Hello, javamike.
See the documentation of Saraff.Twain.NET.
Additionally, I can say the following:
switch(TW_CAPABILITY.ConType){
    case TWON_ONEVALUE:
        // In the Saraff.Twain.NET it's a CTS type, such as Int16, Int32, etc.
        break;
    case TWON_ARRAY:
         // In the Saraff.Twain.NET it's array of a CTS types, such as Int16, Int32, etc.
       break;
    case TWON_RANGE:
         // In the Saraff.Twain.NET it's a Twain32.Range class.
         // Properties:  
         //     public Object CurrentValue { get; set; }
         //     public Object DefaultValue { get; set; }
         //     public Object MaxValue { get; set; }
         //     public Object MinValue { get; set; }
         //     public Object StepSize { get; set; }
        break;
    case TWON_ENUMERATION:
         // In the Saraff.Twain.NET it's a Twain32.Enumeration class.
         // Properties:  
         //     public int Count { get; }
         //     public int CurrentIndex { get; }
         //     public int DefaultIndex { get; }
         //     public Object this[int index] { get; }
        break;
}
Marked as answer by SARAFF on 5/6/2015 at 11:31 AM