Saves the line's text with the specified format.
public void Save(out byte[] binaryData, BinaryStreamType binaryStreamType);Public Sub Save(ByRef binaryData As Byte(), ByVal binaryStreamType As BinaryStreamType)public void Save(out string stringData, StringStreamType stringStreamType);Public Sub Save(ByRef stringData As String, ByVal stringStreamType As StringStreamType)public void Save(out byte[] binaryData, BinaryStreamType binaryStreamType, SaveSettings saveSettings);Public Sub Save(ByRef binaryData As Byte(), ByVal binaryStreamType As BinaryStreamType, ByVal saveSettings As SaveSettings)public void Save(out string stringData, StringStreamType stringStreamType, SaveSettings saveSettings);Public Sub Save(ByRef stringData As String, ByVal stringStreamType As StringStreamType, ByVal saveSettings As SaveSettings)| Parameter | Description |
|---|---|
| binary |
Specifies a byte array into which the line's text is saved. No memory needs to be allocated through the caller. |
| string |
Specifies a string into which the line's text is saved. No memory needs to be allocated through the caller. |
| binary |
Specifies one of the Binary |
| string |
Specifies one of the String |
| save |
Specifies a Save |
This example shows an easy use of the 'TXText
byte[] binaryData;
foreach (TXTextControl.Line line in textControl1.Lines) {
line.Save(out binaryData, TXTextControl.BinaryStreamType.InternalFormat);
}For Each line As TXTextControl.Line In textControl1.Lines
line.Save(binaryData, TXTextControl.BinaryStreamType.InternalFormat)
Next