Documentation
Table of contents

PatchCodeSearchingMargins

Parameter PatchCodeSearchingMargins defines the patch code searching margins.

Example

{
    "PatchCodeSearchingMargins" : 
    {
        "Bottom" : 20,
        "Left" : 20,
        "MeasuredByPercentage" : 1,
        "Right" : 20,
        "Top" : 20
    }
}

Parameter Summary

Parameter PatchCodeSearchingMargins is set by a patch code searching margins object. The patch code searching margins object includes a series of child parameters to define the top, bottom, left, right margins and how they are measured.

Child Parameters

Child Parameter Name Child Parameter Summary
MeasuredByPercentage
Description
Defines whether to measure the margins by percentage.
1: measure by percentage.
0: do not measure by percentage.
Type
int
Range
[0,1]
Top
Description
Defines the margin-top.
Type
int
Range
When MeasureByPercentage = 1: [0,50]
When MeasureByPercentage = 0: [0,0x7fffffff]
Bottom
Description
Defines the margin-bottom.
Type
int
Range
When MeasureByPercentage = 1: [0,50]
When MeasureByPercentage = 0: [0,0x7fffffff]
Left
Description
Defines the margin-left.
Type
int
Range
When MeasureByPercentage = 1: [0,50]
When MeasureByPercentage = 0: [0,0x7fffffff]
Right
Description
Defines the margin-right.
Type
int
Range
When MeasureByPercentage = 1: [0,50]
When MeasureByPercentage = 0: [0,0x7fffffff]

Default Setting

If the PatchCodeSearchingMargins is not configured in your template file, the following settings will be used as the default settings.

{
    "PatchCodeSearchingMargins" : 
    {
        "Bottom" : 20,
        "Left" : 20,
        "MeasuredByPercentage" : 1,
        "Right" : 20,
        "Top" : 20
    }
}

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version
    • Version 2.x
      • Version 2.2.20
      • Version 2.2.10
      • Version 2.2.0
      • Version 2.0.30
      • Version 2.0.20
      • Version 2.0.10
      • Version 2.0.0
    Change +
    © 2003–2024 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support