public VisualItem VisualItemFactory(ScreenContent ScreenContent, ContentField contentField) { VisualItem visualItem = null; if (contentField is ContinuedContentField) { var contField = contentField as ContinuedContentField; if (contField.ContinuedFieldSegmentCode == ContinuedFieldSegmentCode.First) { visualItem = new VisualSpanner(ScreenContent, contField, this.CanvasDefn); } } else { visualItem = this.VisualItemFactory( contentField.GetShowText(ScreenContent), contentField.RowCol, contentField.GetAttrByte(ScreenContent), contentField.GetTailAttrByte(ScreenContent)); } return(visualItem); }