Interface IConfig
Provides the basic functionality for reading and writting configuration. needed for coloring.
Namespace: Syncfusion.Windows.Forms.Edit.Interfaces
Assembly: Syncfusion.Edit.Windows.dll
Syntax
public interface IConfig
Properties
DefaultLanguage
Gets a default language configuration that is stored in embebbed resource.
Declaration
IConfigLanguage DefaultLanguage { get; }
Property Value
Type |
---|
IConfigLanguage |
Item[Int32]
Gets the configuration for language by index
Declaration
IConfigLanguage this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type |
---|
IConfigLanguage |
Item[String]
Gets the configuration for language by specified name
Declaration
IConfigLanguage this[string name] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Property Value
Type |
---|
IConfigLanguage |
KnownLanguages
Gets the list of known to configuration languages
Declaration
ArrayList KnownLanguages { get; }
Property Value
Type |
---|
System.Collections.ArrayList |
Methods
AppendConfig(Stream)
Appends all the configuration file in a single call when user divides on many small one for each language.
Declaration
void AppendConfig(Stream configFile)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | configFile | Stream with XML config |
AppendConfig(String)
Appends all the configuration file in a single call when user divides on many small one for each language.
Declaration
void AppendConfig(string configFile)
Parameters
Type | Name | Description |
---|---|---|
System.String | configFile | file path to config file |
AppendConfig(XmlDocument)
Appends all the configuration file in a single call when user divides on many small one for each language.
Declaration
void AppendConfig(XmlDocument configFile)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlDocument | configFile | XML document which contains formatting data |
CreateLanguageConfiguration(String)
Creates a new language configuration and adds it to the configurations list.
Declaration
IConfigLanguage CreateLanguageConfiguration(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the new language. |
Returns
Type | Description |
---|---|
IConfigLanguage | New instance of language configuration. |
Open(Stream)
Reads the configuration from stream.
Declaration
void Open(Stream configFile)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | configFile | stream which contains configuration for parsers |
Open(String)
Opens the configuration file by it file path.
Declaration
void Open(string configFile)
Parameters
Type | Name | Description |
---|---|---|
System.String | configFile | file path to config file |
Open(XmlDocument)
Opens the XML Document which contains configuration rules for parsers.
Declaration
void Open(XmlDocument configFile)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlDocument | configFile | XML Document |
Reset()
Reset to default configuration
Declaration
void Reset()
Save(Stream)
Saves the configuration to output stream
Declaration
void Save(Stream config)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | config | stream for config saving |
Save(String)
Saves the current configuration to file
Declaration
void Save(string fileName)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | output file name |
Save(XmlDocument)
Saves the configuration to XML Document
Declaration
void Save(XmlDocument config)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlDocument | config | XML document to which data must be saved |
Events
ConfigurationChanged
Occurs after the configuration has changed.
Declaration
event EventHandler ConfigurationChanged
Event Type
Type |
---|
System.EventHandler |