Indicates whether this field is filled.
public bool IsFilled {get; set;}
public boolean isFilled();
public:
property bool IsFilled
{
bool get()
void set(bool value)
}
IsFilled # get and set (TextField)
Indicates whether this field is filled.
The following values are possible:
Value | Meaning |
---|---|
TRUE | The field is filled. |
FALSE | The field is not filled. |
If the value is true, the TextField-FilledAreaBounds will not be empty.
using Leadtools;
using Leadtools.Codecs;
using Leadtools.ImageProcessing.Core;
public void FindCandidateFormFieldsCommandExample()
{
RasterCodecs codecs = new RasterCodecs();
RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, @"Forms\Forms to be Recognized\OMR\AnswerSheet_Pattern.jpg"), 0, Leadtools.Codecs.CodecsLoadByteOrder.Bgr, 1, 1);
FindCandidateFormFieldsCommand findFields = new FindCandidateFormFieldsCommand();
findFields.HorizontalLineMinimumLength = (char)10;
findFields.VerticalLineMinimumLength = (char)3;
findFields.Run(image);
TextField[] textFields = findFields.TextFieldAreas;
OMRField[] omrFields = findFields.OMRFieldAreas;
foreach (TextField field in textFields)
{
// Function TODO : Drawing rectangle field.Bounds
// Function TODO : Drawing rectangle field.FilledAreaBounds
}
foreach (OMRField field in omrFields)
{
if (field.FieldType == BoxOMR)
{
// Function TODO : Drawing rectangle field.UnFilledBound
}
{
// Function TODO : Drawing circle field.UnFilledBound
}
}
image.Dispose();
codecs.Dispose();
}
static class LEAD_VARS
{
public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images";
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.