Skype:TextControlSupport
Orders:877-462-4772
TX Text Control - word processing components.

Selection.Save Method

Description:  Overloaded. Saves the selected text in a file, a byte array or as a string with a specified format.

Syntax: 
[C#]
public DialogResult Save();
public DialogResult Save(StreamType streamType);
public void Save(string path, StreamType streamType);
public void Save(FileStream fileStream, StreamType streamType);
public void Save(out byte[] binaryData, BinaryStreamType binaryStreamType);
public void Save(out string stringData, StringStreamType stringStreamType);
public DialogResult Save(StreamType streamType, SaveSettings saveSettings);
public void Save(string path, StreamType streamType, SaveSettings saveSettings);
public void Save(FileStream fileStream, StreamType streamType, SaveSettings saveSettings);
public void Save(out byte[] binaryData, BinaryStreamType binaryStreamType, SaveSettings saveSettings);
public void Save(out string stringData, StringStreamType stringStreamType, SaveSettings saveSettings);
[Visual Basic]
Public Function Save() As DialogResult
Public Function Save(ByVal streamType As StreamType) As DialogResult
Public Sub Save(ByVal path As String, ByVal streamType As StreamType)
Public Sub Save(ByVal fileStream As FileStream, ByVal streamType As StreamType)
Public Sub Save(ByRef binaryData As Byte(), ByVal binaryStreamType As BinaryStreamType)
Public Sub Save(ByRef stringData As String, ByVal stringStreamType As StringStreamType)
Public Function Save(ByVal streamType As StreamType, ByVal saveSettings As SaveSettings) As DialogResult
Public Sub Save(ByVal path As String, ByVal streamType As StreamType, ByVal saveSettings As SaveSettings)
Public Sub Save(ByVal fileStream As FileStream, ByVal streamType As StreamType, ByVal saveSettings As SaveSettings)
Public Sub Save(ByRef binaryData As Byte(), ByVal binaryStreamType As BinaryStreamType, ByVal saveSettings As SaveSettings)
Public Sub Save(ByRef stringData As String, ByVal stringStreamType As StringStreamType, ByVal saveSettings As SaveSettings)
Member   Description
 
streamType Specifies one of the StreamType values.

path Specifies a file into which the selection is saved. If the file does not exist, it is created. If the file exists, its contents are overwritten.

fileStream Specifies a file into which the selection is saved. The data is saved at the stream's current position.

binaryData Specifies a byte array into which the selection is saved. No memory needs to be allocated through the caller.

stringData Specifies a string into which the selection is saved. No memory needs to be allocated through the caller.

binaryStreamType Specifies one of the BinaryStreamType values.

stringStreamType Specifies one of the StringStreamType values.

saveSettings Specifies a SaveSettings object with additional information and settings for the save operation.

Return Value:  The implementations that open a dialog box return the dialog's result value.

Remarks:  The methods opening a dialog box are not available through the Selection object of a ServerTextControl.
None of these methods is available through the Selection object of a BrowserTextControl.

See also:  Text Selections and Character Input, Graphical Overview.
External verification page for ISO 9000:2000 certificate
ISO 9001:2000
certified