NBoilerpipe.Document.TextBlock.Clone C# (CSharp) Method

Clone() public method

public Clone ( ) : Object
return Object
        public Object Clone()
        {
            TextBlock clone = new TextBlock (text.ToString());

            if (labels != null && !labels.IsEmpty ()) {
                clone.labels = new HashSet<string> (labels);
            }
            if (containedTextElements != null) {
                clone.containedTextElements = (BitSet)containedTextElements.Clone ();
            }
            return clone;
        }