Share via


ImageScannerFlatbedConfiguration.SelectedScanRegion Property

Definition

Gets or sets the origin coordinates (horizontal and vertical) and dimensions (width and height) of the selected scan area, in inches. This property is ignored when the AutoCroppingMode property is not Disabled.

public:
 property Rect SelectedScanRegion { Rect get(); void set(Rect value); };
Rect SelectedScanRegion();

void SelectedScanRegion(Rect value);
public Rect SelectedScanRegion { get; set; }
var rect = imageScannerFlatbedConfiguration.selectedScanRegion;
imageScannerFlatbedConfiguration.selectedScanRegion = rect;
Public Property SelectedScanRegion As Rect

Property Value

The location and size of a rectangle.

Implements

Remarks

This table describes the property's restrictions. Default values are set at the beginning of a new scan session.

NameDefault valueValid flatbed valuesValid feeder values
SelectedScanRegion.X0between 0 and MaximumScanArea.Width - 1between 0 and PageSizeDimenstions.Width
SelectedScanRegion.Y0between 0 and MaximumScanArea.Height - 1between 0 and PageSizeDimenstions.Height
SelectedScanRegion.WidthMaximumScanArea.Widthbetween MinimumScanArea.Width and (MaximumScanArea.Width – SelectedScanRegion.X)between MinimumScanArea.Width and PageSizeDimensions.Width
SelectedScanRegion.HeightMaximumScanArea.Heightbetween MinimumScanAreaHeight and (MaximumScanAreaHeight – SelectedScanRegion.Y)between MinimumScanArea.Height and PageSizeDimensions.Height

Applies to