[]
        
(Showing Draft Content)

C1.Win.Themes.C1Theme.GetThemeName

GetThemeName Method

GetThemeName(Stream)

Retrieves the name of a theme stored in a stream. This method assumes that stream contains theme in Xml format.

Declaration
public static string GetThemeName(Stream stream)
Parameters
Type Name Description
Stream stream

The stream containing the theme XML.

Returns
Type Description
string

The name of the theme, or null if no theme could be found in the stream.

GetThemeName(Stream, C1ThemeFormat)

Retrieves the name of a theme stored in a stream.

Declaration
public static string GetThemeName(Stream stream, C1ThemeFormat format)
Parameters
Type Name Description
Stream stream

The stream containing the theme XML.

C1ThemeFormat format

The document persistence format to use.

Returns
Type Description
string

The name of the theme, or null if no theme could be found in the stream.

GetThemeName(string)

Retrieves the name of a theme stored in a stream. The theme format determined on the base of the file extension.

Declaration
public static string GetThemeName(string fileName)
Parameters
Type Name Description
string fileName

The file containing the theme XML.

Returns
Type Description
string

The name of the theme, or null if no theme could be found in the file.

GetThemeName(string, C1ThemeFormat)

Retrieves the name of a theme stored in a stream.

Declaration
public static string GetThemeName(string fileName, C1ThemeFormat format)
Parameters
Type Name Description
string fileName

The file containing the theme XML.

C1ThemeFormat format

The document persistence format to use.

Returns
Type Description
string

The name of the theme, or null if no theme could be found in the file.