EditSpan.LengthOfLastLine Property
Returns the length of the last line in the replacement text.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
Syntax
'Declaration
Public ReadOnly Property LengthOfLastLine As Integer
public int LengthOfLastLine { get; }
public:
property int LengthOfLastLine {
int get ();
}
member LengthOfLastLine : int with get
function get LengthOfLastLine () : int
Property Value
Type: Int32
Returns the number of characters on the last line of the replacement text.
Remarks
This property examines the replacement text, taking into account newlines, to calculate the length of the last line.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.