Search Results for

    Show / Hide Table of Contents

    Class IniFile

    Reads and writes classic INI configuration files, exposing typed accessors for string, integer, decimal, boolean and date/time values grouped into named sections, with support for loading from a file or stream and saving back.

    Inheritance
    object
    IniFile
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Reportman.Drawing
    Assembly: Reportman.Drawing.dll
    Syntax
    public class IniFile

    Constructors

    View Source

    IniFile(Stream)

    Declaration
    public IniFile(Stream inistream)
    Parameters
    Type Name Description
    Stream inistream
    View Source

    IniFile(string)

    Declaration
    public IniFile(string filename)
    Parameters
    Type Name Description
    string filename

    Fields

    View Source

    sections

    Declaration
    public SortedList<string, IniSection> sections
    Field Value
    Type Description
    SortedList<string, IniSection>

    Methods

    View Source

    CheckNumberFormat()

    Declaration
    public void CheckNumberFormat()
    View Source

    ReadBool(string, string, bool)

    Declaration
    public bool ReadBool(string sectionname, string valuename, bool defaultvalue)
    Parameters
    Type Name Description
    string sectionname
    string valuename
    bool defaultvalue
    Returns
    Type Description
    bool
    View Source

    ReadDateTime(string, string, DateTime)

    Declaration
    public DateTime ReadDateTime(string sectionname, string valuename, DateTime defaultvalue)
    Parameters
    Type Name Description
    string sectionname
    string valuename
    DateTime defaultvalue
    Returns
    Type Description
    DateTime
    View Source

    ReadDecimal(string, string, decimal)

    Declaration
    public decimal ReadDecimal(string sectionname, string valuename, decimal defaultvalue)
    Parameters
    Type Name Description
    string sectionname
    string valuename
    decimal defaultvalue
    Returns
    Type Description
    decimal
    View Source

    ReadInteger(string, string, int)

    Declaration
    public int ReadInteger(string sectionname, string valuename, int defaultvalue)
    Parameters
    Type Name Description
    string sectionname
    string valuename
    int defaultvalue
    Returns
    Type Description
    int
    View Source

    ReadString(string, string, string)

    Declaration
    public string ReadString(string sectionname, string valuename, string defaultvalue)
    Parameters
    Type Name Description
    string sectionname
    string valuename
    string defaultvalue
    Returns
    Type Description
    string
    View Source

    SaveToFile(string)

    Declaration
    public void SaveToFile(string filename)
    Parameters
    Type Name Description
    string filename
    View Source

    SaveToStream(Stream)

    Declaration
    public void SaveToStream(Stream nstream)
    Parameters
    Type Name Description
    Stream nstream
    View Source

    WriteBool(string, string, bool)

    Declaration
    public void WriteBool(string sectionname, string valuename, bool boolvalue)
    Parameters
    Type Name Description
    string sectionname
    string valuename
    bool boolvalue
    View Source

    WriteDateTime(string, string, DateTime)

    Declaration
    public void WriteDateTime(string sectionname, string valuename, DateTime newvalue)
    Parameters
    Type Name Description
    string sectionname
    string valuename
    DateTime newvalue
    View Source

    WriteDecimal(string, string, decimal)

    Declaration
    public void WriteDecimal(string sectionname, string valuename, decimal decvalue)
    Parameters
    Type Name Description
    string sectionname
    string valuename
    decimal decvalue
    View Source

    WriteInteger(string, string, int)

    Declaration
    public void WriteInteger(string sectionname, string valuename, int intvalue)
    Parameters
    Type Name Description
    string sectionname
    string valuename
    int intvalue
    View Source

    WriteString(string, string, string)

    Declaration
    public void WriteString(string sectionname, string valuename, string newvalue)
    Parameters
    Type Name Description
    string sectionname
    string valuename
    string newvalue
    • View Source
    In this article
    Back to top Generated by DocFX