Saves the selected text of a document with the specified format.

Save()

public DialogResult Save();
Public Function Save() As DialogResult

Save(StreamType)

public DialogResult Save(StreamType streamType);
Public Function Save(ByVal streamType As StreamType) As DialogResult

Save(String, StreamType)

public void Save(string path, StreamType streamType);
Public Sub Save(ByVal path As String, ByVal streamType As StreamType)

Save(System.IO.FileStream, StreamType)

public void Save(System.IO.FileStream fileStream, StreamType streamType);
Public Sub Save(ByVal fileStream As System.IO.FileStream, ByVal streamType As StreamType)

Save(Out, BinaryStreamType)

public void Save(out byte[] binaryData, BinaryStreamType binaryStreamType);
Public Sub Save(ByRef binaryData As Byte(), ByVal binaryStreamType As BinaryStreamType)

Save(Out, StringStreamType)

public void Save(out string stringData, StringStreamType stringStreamType);
Public Sub Save(ByRef stringData As String, ByVal stringStreamType As StringStreamType)

Save(StreamType, SaveSettings)

public DialogResult Save(StreamType streamType, SaveSettings saveSettings);
Public Function Save(ByVal streamType As StreamType, ByVal saveSettings As SaveSettings) As DialogResult

Save(String, StreamType, SaveSettings)

public void Save(string path, StreamType streamType, SaveSettings saveSettings);
Public Sub Save(ByVal path As String, ByVal streamType As StreamType, ByVal saveSettings As SaveSettings)

Save(System.IO.FileStream, StreamType, SaveSettings)

public void Save(System.IO.FileStream fileStream, StreamType streamType, SaveSettings saveSettings);
Public Sub Save(ByVal fileStream As System.IO.FileStream, ByVal streamType As StreamType, ByVal saveSettings As SaveSettings)

Save(Out, BinaryStreamType, SaveSettings)

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)

Save(Out, StringStreamType, 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)

Parameters

Parameter 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 which open a dialog box return a Selection.DialogResult value.

Remarks

The methods opening a dialog box are not available through the Selection object of a ServerTextControl.