ThmxTheme Members
Include Protected Members
Include Inherited Members
Represents a Microsoft Office XML theme file. The methods and properties of this class enable read and write operations on the theme name, the color list, and the font list.
The ThmxTheme type exposes the following members.
Properties
Name | Description | |
---|---|---|
![]() |
AccentColor1 | Gets the first accent color that belongs to this theme. |
![]() |
AccentColor2 | Gets the second accent color that belongs to this theme. |
![]() |
AccentColor3 | Gets the third accent color that belongs to this theme. |
![]() |
AccentColor4 | Gets the fourth accent color that belongs to this theme. |
![]() |
AccentColor5 | Gets the fifth accent color that belongs to this theme. |
![]() |
AccentColor6 | Gets the sixth accent color that belongs to this theme. |
![]() |
AccessibleDescription | Gets a brief description of this theme. |
![]() |
DarkColor1 | Gets the first dark color that belongs to this theme. |
![]() |
DarkColor2 | Gets the second dark color that belongs to this theme. |
![]() |
File | Gets the SPFile associated with this theme if applicable. |
![]() |
FollowedHyperlinkColor | Gets the color specified in the current theme to be applied to hypertext links that have been followed. |
![]() |
HyperlinkColor | Gets the color to be applied to hypertext links in the current theme. |
![]() |
LightColor1 | Gets the first light color to be applied in the current theme. |
![]() |
LightColor2 | Gets the second light color to be applied in the current theme. |
![]() |
MajorFont | Gets the major font to be used in this theme. |
![]() |
MinorFont | Gets the minor font to be used in this theme. |
![]() |
Name | Gets or sets the name of this theme. |
![]() |
ServerRelativeUrl | Gets the server-relative URL of the current theme if applicable. |
![]() |
ThemeType | Gets the type of theme. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
ApplyTo(String) | Applies the current theme to the given Cascading Style Sheet (CSS) file. |
![]() |
ApplyTo(SPWeb, Boolean) | Applies the current theme to the given web. |
![]() |
Close | Closes the theme and the underlying package. |
![]() ![]() |
EnforceThemedStylesForWeb | Reapplies the currently applied theme on the web site. |
![]() |
Equals | (Inherited from Object.) |
![]() |
Finalize | (Inherited from Object.) |
![]() |
GenerateThemedStyles(Boolean, SPWeb) | Ensures that the theme has been applied to all themable styles and that the themed styles are updated. |
![]() |
GenerateThemedStyles(Boolean, SPWeb, String) | Ensures that this theme has been applied to all themable styles and that corresponding themed styles are updated. |
![]() |
GetHashCode | (Inherited from Object.) |
![]() ![]() |
GetManagedThemes | Gets the list of managed themes available in the theme gallery of the given site collection. |
![]() ![]() |
GetThemedCssUrl | Returns the URL where the themed Cascading Style Sheet (CSS) can be retrieved. |
![]() ![]() |
GetThemedCssUrlForEncodedUrl | Returns the URL where the themed Cascading Style Sheet (CSS) can be retrieved. |
![]() |
GetThemeFontByName | Gets a theme font by name. |
![]() |
GetThemeShadeByName | Gets a theme shade by name. |
![]() ![]() |
GetThemeUrlForWeb | Gets the server-relative URL for the ThmxTheme object whose theme is applied to the given SharePoint Web site. |
![]() |
GetType | (Inherited from Object.) |
![]() |
MemberwiseClone | (Inherited from Object.) |
![]() ![]() |
Open(Package) | Opens the specified theme package. |
![]() ![]() |
Open(Stream) | Opens a theme package on the specified stream. |
![]() ![]() |
Open(SPFile) | Opens the specified theme package. |
![]() ![]() |
Open(SPSite, String) | Opens the theme package associated with the specified SharePoint Web site and server-relative URL. |
![]() ![]() |
Open(Stream, FileMode, FileAccess) | Opens a theme package using the given I/O stream, file mode, and file access. |
![]() ![]() |
Open(SPFile, Boolean, FileMode, FileAccess) | Opens the specified theme package using the provided values for version, file mode, and file access. |
![]() ![]() |
RemoveThemeFromWeb | Sets the theme on the web to none. |
![]() |
Save | Saves any changes made to this theme to the underlying stream. |
![]() ![]() |
SetThemeUrlForWeb(SPWeb, String) | Applies the theme pointed to by the specified URL to the specified web. |
![]() ![]() |
SetThemeUrlForWeb(SPWeb, String, Boolean) | Applies the theme pointed to by the specified URL to the specified web. |
![]() |
ToString | (Inherited from Object.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
![]() ![]() |
IDisposable.Dispose | Releases any unmanaged resources in use by an object of this class. |
Top