Lucene.Net.Analysis.Tokenattributes.CharTermAttribute.SetLength C# (CSharp) Method

SetLength() public method

public SetLength ( int length ) : ICharTermAttribute
length int
return ICharTermAttribute
        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;
        }