| TextExtensionsAppendLine Method |
Appends text, followed by a newline character, to the end of the range.
Namespace: TextObjectModelAssembly: ManagedTOM2 (in ManagedTOM2.dll) Version: 1.0.5577.41188
Syntax public static void AppendLine(
this TextRange range,
[OptionalAttribute] string text,
[OptionalAttribute] RangeAppendMode mode
)
<ExtensionAttribute>
Public Shared Sub AppendLine (
range As TextRange,
<OptionalAttribute> text As String,
<OptionalAttribute> mode As RangeAppendMode
)
public:
[ExtensionAttribute]
static void AppendLine(
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 See Also