Click or drag to resize
TextExtensionsAppendLine Method
Appends text, followed by a newline character, to the end of the range.

Namespace: TextObjectModel
Assembly: ManagedTOM2 (in ManagedTOM2.dll) Version: 1.0.5577.41188
Syntax
public static void AppendLine(
	this TextRange range,
	[OptionalAttribute] string text,
	[OptionalAttribute] RangeAppendMode mode
)

Parameters

range
Type: TextObjectModelTextRange
The range to append the text the end of.
text (Optional)
Type: SystemString
The text to append.
mode (Optional)
Type: TextObjectModelRangeAppendMode
Controls how the start and end positions of the range are affected.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type TextRange. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
This extension method mimics the behaviour of the AppendLine(String) method of the StringBuilder class.
See Also