More cap wrapper.

This commit is contained in:
soukoku
2014-11-08 08:58:27 -05:00
parent 88a54c95d9
commit b4c3ebd549
4 changed files with 370 additions and 122 deletions

View File

@@ -1,4 +1,5 @@
using System;
using NTwain.Data;
using System;
namespace NTwain
{
@@ -139,6 +140,14 @@ namespace NTwain
/// </value>
bool CanSet { get; }
/// <summary>
/// Gets a value indicating whether <see cref="SetConstraint"/> is supported.
/// </summary>
/// <value>
/// <c>true</c> if this capability can set constraint; otherwise, <c>false</c>.
/// </value>
bool CanSetConstraint { get; }
/// <summary>
/// Resets the current value to power-on default.
/// </summary>
@@ -146,10 +155,31 @@ namespace NTwain
NTwain.Data.ReturnCode Reset();
/// <summary>
/// Sets the current value of this capability.
/// Simplified version that sets the current value of this capability.
/// </summary>
/// <param name="value">The value.</param>
/// <returns></returns>
NTwain.Data.ReturnCode Set(TValue value);
/// <summary>
/// Sets the constraint value of this capability.
/// </summary>
/// <param name="value">The value.</param>
/// <returns></returns>
ReturnCode SetConstraint(TWOneValue value);
/// <summary>
/// Sets the constraint value of this capability.
/// </summary>
/// <param name="value">The value.</param>
/// <returns></returns>
ReturnCode SetConstraint(TWEnumeration value);
/// <summary>
/// Sets the constraint value of this capability.
/// </summary>
/// <param name="value">The value.</param>
/// <returns></returns>
ReturnCode SetConstraint(TWRange value);
}
}