more icaps

This commit is contained in:
soukoku
2014-11-09 14:37:58 -05:00
parent 852a055e5a
commit bdefa03579
4 changed files with 280 additions and 19 deletions

View File

@@ -397,6 +397,24 @@ namespace NTwain
return rc;
}
/// <summary>
/// A version of Set that uses an enumeration.
/// </summary>
/// <param name="value">The value.</param>
/// <returns></returns>
public ReturnCode Set(TWEnumeration value)
{
ReturnCode rc = ReturnCode.Failure;
if (CanSet)
{
using (var cap = new TWCapability(Capability, value))
{
rc = _source.DGControl.Capability.Set(cap);
}
}
return rc;
}
/// <summary>
/// Sets the constraint value of this capability.
/// </summary>