[]
        
(Showing Draft Content)

C1.WPF.FlexGrid.C1FlexGrid.Save

Save Method

Save(StreamWriter, FileFormat, SaveOptions)

Saves the contents of the grid to a StreamWriter.

Declaration
public void Save(StreamWriter sw, FileFormat format, SaveOptions options)
Parameters
Type Name Description
StreamWriter sw

StreamWriter where the contents will be saved.

FileFormat format

FileFormat value that specifies the format used to save the file.

SaveOptions options

SaveOptions value that specifies options to use when saving the file.

Save(Stream, FileFormat, Encoding, SaveOptions)

Saves the contents of the grid to a stream.

Declaration
public void Save(Stream stream, FileFormat format, Encoding encoding, SaveOptions options)
Parameters
Type Name Description
Stream stream

Stream where the contents will be saved.

FileFormat format

FileFormat value that specifies the format used to save the file.

Encoding encoding

Encoding value that specifies the encoding for the file.

SaveOptions options

SaveOptions value that specifies options to use when saving the file.

Remarks

The caller is responsible for closing the Stream.

Save(Stream, FileFormat, SaveOptions)

Saves the contents of the grid to an UTF8-encoded stream.

Declaration
public void Save(Stream stream, FileFormat format, SaveOptions options)
Parameters
Type Name Description
Stream stream

Stream where the contents will be saved.

FileFormat format

FileFormat value that specifies the format used to save the file.

SaveOptions options

SaveOptions value that specifies options to use when saving the file.

Remarks

The caller is responsible for closing the Stream.

Save(Stream, FileFormat)

Saves the contents of the grid to an UTF8-encoded stream.

Declaration
public void Save(Stream stream, FileFormat format)
Parameters
Type Name Description
Stream stream

Stream where the contents will be saved.

FileFormat format

FileFormat value that specifies the format used to save the file.

Remarks

The caller is responsible for closing the Stream.

Save(string, FileFormat, Encoding, SaveOptions)

Saves the contents of the grid to a file.

Declaration
public void Save(string fileName, FileFormat format, Encoding encoding, SaveOptions options)
Parameters
Type Name Description
string fileName

Name of the file to save.

FileFormat format

FileFormat value that specifies the format used to save the file.

Encoding encoding

Encoding value that specifies the encoding for the file.

SaveOptions options

SaveOptions value that specifies options to use when saving the file.

Save(string, FileFormat, SaveOptions)

Saves the contents of the grid to an UTF8-encoded file.

Declaration
public void Save(string fileName, FileFormat format, SaveOptions options)
Parameters
Type Name Description
string fileName

Name of the file to save.

FileFormat format

FileFormat value that specifies the format used to save the file.

SaveOptions options

SaveOptions value that specifies options to use when saving the file.

Save(string, FileFormat)

Saves the contents of the grid to an UTF8-encoded file.

Declaration
public void Save(string fileName, FileFormat format)
Parameters
Type Name Description
string fileName

Name of the file to save.

FileFormat format

FileFormat value that specifies the format used to save the file.