Table of Contents

Property Elements

Namespace
LMKit.Extraction
Assembly
LM-Kit.NET.dll

Elements

Gets or sets the list of TextExtractionElement instances that define the elements to extract from the content.

public List<TextExtractionElement> Elements { get; set; }

Property Value

List<TextExtractionElement>

A list of elements specifying what data to extract. If set to null, it initializes an empty list.

Examples

// Define the elements to extract
textExtraction.Elements = new List<TextExtractionElement>
{
    new TextExtractionElement("Name", ElementType.String, "The person's full name"),
    new TextExtractionElement("Age", ElementType.Integer, "The person's age"),
    new TextExtractionElement(
        "Address",
        new List<TextExtractionElement>
        {
            new TextExtractionElement("Street", ElementType.String),
            new TextExtractionElement("City", ElementType.String),
            new TextExtractionElement("ZipCode", ElementType.String)
        },
        isArray: false,
        description: "The person's address details"
    )
};