[]
Retrieves the name of a theme stored in a stream. This method assumes that stream contains theme in Xml format.
public static string GetThemeName(Stream stream)
Type | Name | Description |
---|---|---|
Stream | stream | The stream containing the theme XML. |
Type | Description |
---|---|
string | The name of the theme, or null if no theme could be found in the stream. |
Retrieves the name of a theme stored in a stream.
public static string GetThemeName(Stream stream, C1ThemeFormat format)
Type | Name | Description |
---|---|---|
Stream | stream | The stream containing the theme XML. |
C1ThemeFormat | format | The document persistence format to use. |
Type | Description |
---|---|
string | The name of the theme, or null if no theme could be found in the stream. |
Retrieves the name of a theme stored in a stream. The theme format determined on the base of the file extension.
public static string GetThemeName(string fileName)
Type | Name | Description |
---|---|---|
string | fileName | The file containing the theme XML. |
Type | Description |
---|---|
string | The name of the theme, or null if no theme could be found in the file. |
Retrieves the name of a theme stored in a stream.
public static string GetThemeName(string fileName, C1ThemeFormat format)
Type | Name | Description |
---|---|---|
string | fileName | The file containing the theme XML. |
C1ThemeFormat | format | The document persistence format to use. |
Type | Description |
---|---|
string | The name of the theme, or null if no theme could be found in the file. |