SyntaxGeneratorTemplateWriteWithLineBreakIfNeeded Method

This is used to write a string followed by an optional line break if needed (the writer position is past the maximum position afterwards).

Definition

Namespace: Sandcastle.Core.BuildAssembler.SyntaxGenerator
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2024.2.18.0
public static bool WriteWithLineBreakIfNeeded(
	SyntaxWriter writer,
	string text,
	string indent
)

Parameters

writer  SyntaxWriter
The syntax writer to use
text  String
An optional text string to write before the new line
indent  String
An optional indent to write after the line break

Return Value

Boolean
True if a new line was written, false if not

See Also