[]
        
(Showing Draft Content)

C1.WinUI.Grid.FlexGrid.Save

Save Method

Save(string, GridFileFormat, Encoding, GridSaveOptions)

Saves the contents of the grid to a file.

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

Name of the file to save.

GridFileFormat format

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

Encoding encoding

Encoding value that specifies the encoding for the file.

GridSaveOptions options

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

Save(string, GridFileFormat, GridSaveOptions)

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

Declaration
public void Save(string fileName, GridFileFormat format, GridSaveOptions options)
Parameters
Type Name Description
string fileName

Name of the file to save.

GridFileFormat format

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

GridSaveOptions options

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

Save(string, GridFileFormat)

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

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

Name of the file to save.

GridFileFormat format

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

Save(Stream, GridFileFormat)

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

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

Stream where the contents will be saved.

GridFileFormat format

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

Remarks

The caller is responsible for closing the Stream.

Save(Stream, GridFileFormat, GridSaveOptions)

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

Declaration
public void Save(Stream stream, GridFileFormat format, GridSaveOptions options)
Parameters
Type Name Description
Stream stream

Stream where the contents will be saved.

GridFileFormat format

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

GridSaveOptions options

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

Remarks

The caller is responsible for closing the Stream.

Save(Stream, GridFileFormat, Encoding, GridSaveOptions)

Saves the contents of the grid to a stream.

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

Stream where the contents will be saved.

GridFileFormat format

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

Encoding encoding

Encoding value that specifies the encoding for the file.

GridSaveOptions options

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

Remarks

The caller is responsible for closing the Stream.

Save(StreamWriter, GridFileFormat, GridSaveOptions)

Saves the contents of the grid to a StreamWriter.

Declaration
public void Save(StreamWriter sw, GridFileFormat format, GridSaveOptions options)
Parameters
Type Name Description
StreamWriter sw

StreamWriter where the contents will be saved.

GridFileFormat format

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

GridSaveOptions options

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