VintaSoft Twain .NET SDK 15.0: Documentation for .NET developer
Vintasoft.WpfTwain Namespace / DeviceImageLayout Class / Set Methods / Set(RectangleF) Method
Syntax Exceptions Remarks Example Requirements SeeAlso
In This Topic
    Set(RectangleF) Method (DeviceImageLayout)
    In This Topic
    Sets the image layout rectangle of document/page/frame.
    Syntax
    'Declaration
    
    Public Overloads Sub Set( _
    ByVal frame
    Image layout rectangle.
    As RectangleF _
    )
    public void Set(
    RectangleF frame
    )
    public: void Set(
    RectangleF frame
    )
    public:
    void Set(
    RectangleF frame
    )

    Parameters

    frame
    Image layout rectangle.
    Exceptions
    ExceptionDescription
    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.

    Approximated event occurs if device approximated requested value of the image layout.

    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).

    Example

    Please see example here: DeviceImageLayout.

    Requirements

    Target Platforms: .NET 8, .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also