public ICharTermAttribute SetLength(int length) { if (length > TermBuffer.Length) { throw new System.ArgumentException("length " + length + " exceeds the size of the termBuffer (" + TermBuffer.Length + ")"); } TermLength = length; return this; }