Click or drag to resize
OleCommandTextMaxLength Property
Gets the maximum length of the Text property.

Namespace: Tvl.VisualStudio.Shell
Assembly: Tvl.VisualStudio.Shell.Utility.10 (in Tvl.VisualStudio.Shell.Utility.10.dll) Version: 1.0.0.0
Syntax
public int MaxLength { get; }

Property Value

Type: Int32
The maximum length of the Text property.
Exceptions
ExceptionCondition
ObjectDisposedExceptionIf the object has been disposed.
Remarks

The OLECMDTEXT structure uses a caller-allocated array of characters to hold the string data. When setting the Text property, if the value (plus a terminating NUL character) exceeds this length, the string is automatically truncated to fit within the provided buffer.

See Also