[]
Represents a theme that can be applied to WinForms controls to modify their appearance.
public class C1Theme : ThemeItem
Name | Description |
---|---|
C1Theme() | Initializes a new instance of the C1Theme class. |
Name | Description |
---|---|
Attrs | Gets the theme attributes. |
FormatVersion | Gets the current format version. |
Icon | Gets or sets the theme icon. |
OriginalThemeVersion | Gets an original theme version that was defined in loaded xml. |
Template | For internal use. Gets an internal theme template. |
ThemeVersion | Gets the current theme version. |
Name | Description |
---|---|
ApplyThemeToControlTree(Control, Predicate<Control>) | Recursively applies a theme to a control and its children. Controls that do not support themes are ignored (but the theme is applied to their children). |
ApplyThemeToObject(object) | Applies a theme to an object. The target object must be either a C1 control supporting themes, or a standard control (such as Button, Label etc) for which basic theming is provided by this library. |
AssignAttrsFrom(ThemeItem) | Loads the current theme attributes from a C1.Win.Themes.ThemeItem. |
AssignFrom(ThemeItem) | Loads the current theme from a C1.Win.Themes.ThemeItem. |
GetBackground(string) | Gets a ThemeBackground value specified by a path. |
GetBackground(string, ThemeBackground) | Gets a ThemeBackground value specified by a path. |
GetBlend(string) | Gets a Blend specified by a path. |
GetBool(string) | Gets a boolean value specified by a path. |
GetBool(string, bool) | Gets a boolean value specified by a path. |
GetC1Icon(string) | Gets an C1Icon specified by a path. |
GetC1Icon(string, C1Icon) | Gets an C1Icon specified by a path. |
GetColor(string) | Gets a Color value specified by a path. |
GetColor(string, Color) | Gets a Color value specified by a path. |
GetColorBlend(string) | Gets a ColorBlend specified by a path. |
GetCorners(string) | Gets a C1.Framework.Corners specified by a path. |
GetDouble(string) | Gets a double value specified by a path. |
GetEnum(string) | Gets an enumeration value specified by a path. |
GetEnumStr(string) | Gets a string representation of an enumeration value specified by a path. |
GetEnum<T>(string, T) | Gets an enumeration value specified by a path. |
GetFont(string) | Gets a Font specified by a path. |
GetFont(string, Font) | Gets a Font specified by a path. |
GetImage(string) | Gets an image specified by a path. |
GetImage(string, Image) | Gets an image specified by a path. |
GetInt(string) | Gets an integer value specified by a path. |
GetInt(string, int) | Gets an integer value specified by a path. |
GetMergedFont(string, Font) | Gets a Font obtained by the merging of the default font and font specified by a path. |
GetPoint(string) | Gets a Point specified by a path. |
GetString(string) | Gets a string specified by a path. |
GetThemeName(Stream) | Retrieves the name of a theme stored in a stream. This method assumes that stream contains theme in Xml format. |
GetThemeName(Stream, C1ThemeFormat) | Retrieves the name of a theme stored in a stream. |
GetThemeName(string) | Retrieves the name of a theme stored in a stream. The theme format determined on the base of the file extension. |
GetThemeName(string, C1ThemeFormat) | Retrieves the name of a theme stored in a stream. |
GetThickness(string) | Gets a Padding specified by a path. |
GetUsedFonts() | Retrieves names of all fonts used in the current theme. |
HasValue(string) | Tests whether a path specifies a value. Note that a path may be empty (i.e. IsEmpty(string) returns true) and still specify a value via a reference on one of its parents (i.e. this method will return true). |
IsEmpty(string) | Checks whether the specified path contains neither a value nor a reference. |
IsTreeEmpty(string) | Recursively checks whether the specified path including all its children contain neither values nor references. |
Load(Stream) | Loads the current theme from a stream. This method assumes that stream contains theme in Xml format. |
Load(Stream, C1ThemeFormat) | Loads the current theme from a stream. |
Load(string) | Loads the current theme from a file. The theme format determined on the base of the file extension. |
Load(string, C1ThemeFormat) | Loads the current theme from a file. |
Save(Stream) | Saves the current theme to a stream. This method saves theme in the Xml format. |
Save(Stream, C1ThemeFormat) | Saves the current theme to a stream. |
Save(string) | Saves the current theme to a file. The theme format determined on the base of the file extension. |
Save(string, C1ThemeFormat) | Saves the current theme to a file. |
SerializeReadProp(Serializer, string, Type, string) | For internal use. |
SerializeReset() | For internal use. |
SerializeWrite(Serializer) | For internal use. |