VintaSoft Twain .NET SDK v10.2
Vintasoft.Twain Namespace / DeviceImageLayout Class / Set Method / Set(String) Method
Coordinate values the image layout rectangle in the following format: "left top right bottom".




In This Topic
    Set(String) Method
    In This Topic
    Sets the image layout rectangle of document/page/frame.
    Syntax
    'Declaration
     
    Public Overloads Sub Set( _
       ByVal frame As String _
    ) 
    'Usage
     
    Dim instance As DeviceImageLayout
    Dim frame As String
     
    instance.Set(frame)
    public void Set( 
       string frame
    )
    public: void Set( 
       string* frame
    ) 
    public:
    void Set( 
       String^ frame
    ) 

    Parameters

    frame
    Coordinate values the image layout rectangle in the following format: "left top right bottom".
    Exceptions
    ExceptionDescription
    Thrown if frame is null.
    Thrown if frame contains numbers in not a valid format.
    Thrown if frame contains number less than System.Single.MinValue or greater than System.Single.MaxValue.
    Thrown if the .NET debugger is used and the function evaluation requires all threads to run.
    Remarks
    The image layout rectangle defines what portion of the device's scanning area will be acquired.

    Document number can be set using the DocumentNumber property, Page number can be set using the PageNumber property, Frame number can be set using the FrameNumber property

    Call this method only when device is opened (State == DeviceState.Opened).

    This method has effect only if you do not use the User Interface (ShowUI=false).

    This method should be used in programming environments which cannot work with referred float value, for example, in JavaScript.
    Example
    Please see example here.
    Requirements

    Target Platforms: Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also