TX Text Control .NET for Windows Forms

BytesWritten Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets the number of bytes written during a save operation.

Syntax

public long BytesWritten { get; }

Examples

The following example reads SaveSettings.BytesWritten after the document has been saved.

SaveSettings saveSettings = new();
textControl.Text = "Quarterly results";
textControl.Save("quarterly-results.docx", StreamType.WordprocessingML, saveSettings);
Console.WriteLine($"Bytes Written: {saveSettings.BytesWritten}");

Limitations

Read only.