Class FileSaver
- Namespace
- GtkSource
- Assembly
- GtkSource-5.dll
public class FileSaver : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
FileSaver
- Implements
- Inherited Members
Constructors
FileSaver(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public FileSaver(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
FileSaver(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected FileSaver(CreationData data)
Parameters
dataCreationData
FileSaver(FileSaverHandle)
protected FileSaver(FileSaverHandle handle)
Parameters
handleFileSaverHandle
Fields
BufferPropertyDefinition
public static readonly Property<Buffer?, FileSaver> BufferPropertyDefinition
Field Value
CompressionTypePropertyDefinition
public static readonly Property<CompressionType, FileSaver> CompressionTypePropertyDefinition
Field Value
EncodingPropertyDefinition
public static readonly Property<Encoding, FileSaver> EncodingPropertyDefinition
Field Value
FilePropertyDefinition
public static readonly Property<File?, FileSaver> FilePropertyDefinition
Field Value
FlagsPropertyDefinition
public static readonly Property<FileSaverFlags, FileSaver> FlagsPropertyDefinition
Field Value
LocationPropertyDefinition
public static readonly Property<File, FileSaver> LocationPropertyDefinition
Field Value
NewlineTypePropertyDefinition
public static readonly Property<NewlineType, FileSaver> NewlineTypePropertyDefinition
Field Value
Properties
Buffer
public Buffer? Buffer { get; }
Property Value
CompressionType
public CompressionType CompressionType { get; set; }
Property Value
Encoding
public Encoding Encoding { get; set; }
Property Value
File
public File? File { get; }
Property Value
Flags
public FileSaverFlags Flags { get; set; }
Property Value
Location
public File Location { get; }
Property Value
NewlineType
public NewlineType NewlineType { get; set; }
Property Value
Methods
GetBuffer()
public Buffer GetBuffer()
Returns
GetCompressionType()
public CompressionType GetCompressionType()
Returns
GetEncoding()
public Encoding GetEncoding()
Returns
GetFile()
public File GetFile()
Returns
GetFlags()
public FileSaverFlags GetFlags()
Returns
GetGType()
public static Type GetGType()
Returns
GetLocation()
public File GetLocation()
Returns
GetNewlineType()
public NewlineType GetNewlineType()
Returns
New(Buffer, File)
public static FileSaver New(Buffer buffer, File file)
Parameters
Returns
NewFromPointer(nint, bool)
Creates a new managed FileSaver instance for a given pointer.
public static FileSaver NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new FileSaver and sets the properties specified by the construct arguments.
public static FileSaver NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
NewWithTarget(Buffer, File, File)
public static FileSaver NewWithTarget(Buffer buffer, File file, File targetLocation)
Parameters
Returns
SaveFinish(AsyncResult)
public bool SaveFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
SetCompressionType(CompressionType)
public void SetCompressionType(CompressionType compressionType)
Parameters
compressionTypeCompressionType
SetEncoding(Encoding?)
public void SetEncoding(Encoding? encoding)
Parameters
encodingEncoding
SetFlags(FileSaverFlags)
public void SetFlags(FileSaverFlags flags)
Parameters
flagsFileSaverFlags
SetNewlineType(NewlineType)
public void SetNewlineType(NewlineType newlineType)
Parameters
newlineTypeNewlineType