Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.9.21
|
Leadtools.Twain Namespace > TwainRangeCapability Class : DefaultValue Property |
public object DefaultValue {get; set;}
'Declaration
Public Property DefaultValue As Object
'Usage
Dim instance As TwainRangeCapability Dim value As Object instance.DefaultValue = value value = instance.DefaultValue
Imports Leadtools Imports Leadtools.Twain Public Sub DefaultValuePropertyExample(ByVal parent As IntPtr) Dim twnSession As TwainSession = New TwainSession() twnSession.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None) Dim twCap As TwainCapability = New TwainCapability() twCap.Information.ContainerType = TwainContainerType.Range twCap.Information.Type = TwainCapabilityType.ImageJpegQuality twCap.RangeCapability.ItemType = TwainItemType.Int16 twCap.RangeCapability.CurrentValue = TwainCapabilityValue.JpegQualityMedium twCap.RangeCapability.DefaultValue = TwainCapabilityValue.JpegQualityHigh twCap.RangeCapability.MinimumValue = 0 twCap.RangeCapability.MaximumValue = 50 twCap.RangeCapability.StepSize = 10 twnSession.SetCapability(twCap, TwainSetCapabilityMode.Set) twnSession.Shutdown() End Sub
using Leadtools; using Leadtools.Twain; public void DefaultValuePropertyExample(IntPtr parent) { TwainSession twnSession = new TwainSession(); twnSession.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None); TwainCapability twCap = new TwainCapability(); twCap.Information.ContainerType = TwainContainerType.Range; twCap.Information.Type = TwainCapabilityType.ImageJpegQuality; twCap.RangeCapability.ItemType = TwainItemType.Int16; twCap.RangeCapability.CurrentValue = TwainCapabilityValue.JpegQualityMedium; twCap.RangeCapability.DefaultValue = TwainCapabilityValue.JpegQualityHigh; twCap.RangeCapability.MinimumValue = 0; twCap.RangeCapability.MaximumValue = 50; twCap.RangeCapability.StepSize = 10; twnSession.SetCapability(twCap, TwainSetCapabilityMode.Set); twnSession.Shutdown(); }