IniDocument Class

TG.INI

IniDocument Class

Represents an INI file structure.
Inheritance Hierarchy
SystemObject  TG.INIIniDocument

Namespace:  TG.INI
Assembly:  TG.INI (in TG.INI.dll) Version: 1.2.2.0 (1.2.2.0)
Syntax
public class IniDocument : IDisposable
Public Class IniDocument
	Implements IDisposable
public ref class IniDocument : IDisposable
type IniDocument =  
    class
        interface IDisposable
    end

The IniDocument type exposes the following members.

Constructors
  NameDescription
Public methodIniDocument
Initializes a new IniDocument.
Public methodIniDocument(Stream)
Initializes a new instance of IniDocument then reads from a stream.
Public methodIniDocument(Object)
Initializes a new instance of IniDocument and deserializes the provided object.
Public methodIniDocument(String)
Initializes a new instance of IniDocument then reads from a path.
Public methodIniDocument(IEncryptionHandler)
Initializes a new instance of IniDocument with a designated IEncryptionHandler.
Public methodIniDocument(Stream, IEncryptionHandler)
Initializes a new instance of IniDocument then reads from a stream.
Public methodIniDocument(String, IEncryptionHandler)
Initializes a new instance of IniDocument then reads from a path.
Top
Properties
  NameDescription
Public propertyCommentLineIndicator
Gets or Sets the string that indicates a line is a comment.
Public propertyEncryptionHandler
Get or set the IEncryptionHandler to use for encryption.
Public propertyGlobalSection
Gets the Global section of the INI file.
Public propertyHasEncryptionHandler
Gets if the EncryptionHandler property is not null.
Public propertyItem
Gets a IniSection by name.
Public propertyQuoteAllValues
Gets or Sets whether all Value properties should be quoted on output.
Public propertySections
Gets a collection of IniSection.
Top
Methods
  NameDescription
Public methodClone
Clones the current IniDocument and creates a new instance.
Public methodDispose
Disposes the document.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetKeyValue(String)
Navigates to a section and looks for a key from the path.
Public methodGetKeyValue(String, Boolean)
Navigates to a section and looks for a key from the path.
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodStatic memberParse(String)
Parses an INI string.
Public methodStatic memberParse(String, IEncryptionHandler)
Parses an INI string.
Public methodRead(Stream)
Reads an INI file from a stream and parses the data.
Public methodRead(TextReader)
Reads an INI file and parses the data.
Public methodRead(String)
Reads an INI file and parses the data.
Public methodShowEditor
Shows the IniEditor window for the current IniDocument.
Public methodShowEditor(EditorPrivileges)
Shows the IniEditor window for the current IniDocument.
Public methodToString
Returns the INI data as string.
(Overrides ObjectToString.)
Public methodWrite(Stream)
Writes the content of IniDocument to a Stream.
Public methodWrite(TextWriter)
Writes the content of IniDocument to a TextWriter.
Public methodWrite(String)
Writes the content of IniDocument to a file./>.
Top
See Also