Method SetLength
SetLength(Int32)
Set number of valid characters (length of the term) in the termBuffer array. Use this to truncate the termBuffer or to synchronize with external manipulation of the termBuffer. Note: to grow the size of the array, use ResizeBuffer(Int32) first. NOTE: This is exactly the same operation as calling the Length setter, the primary difference is that this method returns a reference to the current object so it can be chained.
obj.SetLength(30).Append("hey you");
Declaration
ICharTermAttribute SetLength(int length)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | length | the truncated length |
Returns
Type | Description |
---|---|
ICharTermAttribute |