Implement WriteToDocument method in Formatter.
This commit is contained in:
@ -88,6 +88,20 @@ namespace zaaReloaded2.Formatter
|
||||
|
||||
#region Public methods
|
||||
|
||||
/// <summary>
|
||||
/// Writes some text to the current document.
|
||||
/// Does nothing if there is no current document.
|
||||
/// </summary>
|
||||
/// <param name="text">Text to write to the current document.
|
||||
/// </param>
|
||||
public void WriteToDocument(string text)
|
||||
{
|
||||
if (Document != null)
|
||||
{
|
||||
Document.Range().InsertAfter(text);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Formats the laboratory and writes it to a Word document.
|
||||
/// </summary>
|
||||
|
Reference in New Issue
Block a user