Leadtools.Twain Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.8.31
Length Property
See Also 
Leadtools.Twain Namespace > TwainMemoryData Structure : Length Property




Gets or sets the size of the data buffer in bytes. This value should always be an even number and word-aligned.

Syntax

Visual Basic (Declaration) 
Public Property Length As Integer
Visual Basic (Usage)Copy Code
Dim instance As TwainMemoryData
Dim value As Integer
 
instance.Length = value
 
value = instance.Length
C# 
public int Length {get; set;}
Managed Extensions for C++ 
public: __property int get_Length();
public: __property void set_Length( 
   int value
);
C++/CLI 
public:
property int Length {
   int get();
   void set (int value);
}

Return Value

The size of the data buffer in bytes. The value of this property should always be an even number and word-aligned.

Example

Refer to GetJpegCompression example.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also