public Line()

in src-csharp/TextractExtensions/Line.cs [60:82]


		public Line(Block block, Dictionary<string, Block> blocks) {
			this.Block = block;
			this.Confidence = block.Confidence;
			this.Geometry = block.Geometry;
			this.Id = block.Id;
			this.Text = block == null ? string.Empty : block.Text;
			this.Words = new List<Word>();

			var relationships = block.Relationships;
			if(relationships != null && relationships.Count > 0) {
				relationships.ForEach(r => {
					if(r.Type == "CHILD") {
						r.Ids.ForEach(id => {
                            var block = blocks[id];
                            if(block.BlockType == "WORD")
                                this.Words.Add(new Word(block, blocks));
                            else
                                this.Words.Add(new Word(null, blocks));
                        });
					}
				});
			}
		}