Skip to content

Commit b21c58a

Browse files
committed
Edit pass.
1 parent e3e7af3 commit b21c58a

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

docs/declarative-customization/site-theming/sharepoint-site-theming-csom.md

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
# SharePoint site theming: CSOM development
22

3-
The SharePoint Client Side Object Model (CSOM) provides .NET developers with access to the SharePoint object model from code that is running locally or on a different server than SharePoint. This topic covers the site theming functionality available in CSOM.
3+
The SharePoint client-side object model (CSOM) provides access to the SharePoint object model from code that is running locally or on a different server than SharePoint.
44

55
## Prerequisites
6-
This topic assumes you are familiar with the topics [Using the Client Object Model](https://msdn.microsoft.com/en-us/library/ff798388.aspx) and [Common Programming Tasks in the Managed Client Object Model](https://msdn.microsoft.com/en-us/library/ee537013.aspx), which cover how to work with the SharePoint CSOM.
6+
Before you get started, make sure that you're familiar with the following:
7+
- [Using the Client Object Model](https://msdn.microsoft.com/en-us/library/ff798388.aspx)
8+
- [Common Programming Tasks in the Managed Client Object Model](https://msdn.microsoft.com/en-us/library/ee537013.aspx)
79

810
Install the following components for CSOM development:
911

1012
* [SharePoint Server 2016 Client Component SDK](https://www.microsoft.com/en-us/download/details.aspx?id=51679)
1113
* [Microsoft.SharePointOnline.CSOM](https://www.nuget.org/packages/Microsoft.SharePointOnline.CSOM/) NuGet package (version 16.1.6906.1200 or later)
1214

13-
## Sample code
15+
## CSOM code example
1416

15-
The following sample shows how to create a __Microsoft.Online.SharePoint.TenantAdministration.Tenant__ object and call the __GetAllTenantThemes__ method to return a list of themes. Notes on this sample:
17+
The following example shows how to create a __Microsoft.Online.SharePoint.TenantAdministration.Tenant__ object and call the __GetAllTenantThemes__ method to return a list of themes.
1618

17-
* The URL used for creating the context object includes the _-admin_ suffix, because TenantAdministration methods work with the admin site.
18-
* Create a __Tenant__ instance with the [Tenant constructor](https://msdn.microsoft.com/en-us/library/dn174852.aspx), and then call the methods on that instance.
19-
* The same approach can be used for calling other theme management methods.
19+
>**Note:**
20+
>* The URL used to create the context object includes the _-admin_ suffix, because **TenantAdministration** methods work with the admin site.
21+
>* Create a __Tenant__ instance with the [Tenant constructor](https://msdn.microsoft.com/en-us/library/dn174852.aspx), and then call the methods on that instance.
22+
>* You can use the same approach to call other theme management methods.
2023
2124
```C#
2225
using System.Security;
@@ -33,7 +36,7 @@ Tenant tenant = new Tenant(ctx);
3336
SPClient.ClientObjectList<ThemeProperties> themes = tenant.GetAllTenantThemes();
3437
```
3538

36-
## Sample theme definition
39+
## Theme definition example
3740

3841
For methods that take a theme argument, the following code defines an __SPOTheme__ class that you can use to create custom themes.
3942

@@ -69,11 +72,11 @@ public class SPOTheme 
6972

7073
## Applying a theme
7174

72-
The methods covered below are used to manage the available themes in your tenant. To _apply_ a theme to a particular SharePoint web site, use the [SPWeb.ApplyTheme](https://msdn.microsoft.com/en-us/library/office/jj251358.aspx) method of the [Microsoft.SharePoint.Client.Web](https://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.client.web.aspx) class.
75+
The methods described in this section are used to manage the available themes in your tenant. To _apply_ a theme to a particular SharePoint website, use the [SPWeb.ApplyTheme](https://msdn.microsoft.com/en-us/library/office/jj251358.aspx) method of the [Microsoft.SharePoint.Client.Web](https://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.client.web.aspx) class.
7376

7477
## Methods/properties of the Microsoft.Online.SharePoint.TenantAdministration.Tenant class
7578

76-
These methods can be used to customize a SharePoint tenant administration site's set of available themes. You can add a new custom theme, update an existing theme, or delete a theme, and you can retrieve a specific theme or all themes. You can also hide or restore the default themes that come with SharePoint.
79+
Use the following methods to customize the set of available themes for a SharePoint tenant administration site. You can add a new custom theme, update an existing theme, or delete a theme, and you can retrieve a specific theme or all themes. You can also hide or restore the default themes that come with SharePoint.
7780

7881
### AddTenantTheme public method
7982
Add a theme to the tenant.
@@ -90,7 +93,7 @@ __Parameters:__ string name<br/>
9093
__Return type:__ void
9194

9295
### GetAllTenantThemes public method
93-
Retrieve all of the themes currently available in the tenant, including any custom themes that have been added. Default themes are only included if the __HideDefaultThemes__ property is __false__ (the default value).
96+
Retrieve all the themes that are currently available in the tenant, including any custom themes that have been added. Default themes are only included if the __HideDefaultThemes__ property is __false__ (the default value).
9497

9598
__Namespace:__ Microsoft.Online.SharePoint.TenantAdministration.Tenant<br/>
9699
__Parameters:__ none<br/>
@@ -104,7 +107,7 @@ __Parameters:__ string name<br/>
104107
__Return type:__ ThemeProperties
105108

106109
### HideDefaultThemes public property
107-
This property indicates whether the default themes ("out of the box" themes) are hidden in the theme picker user interface for modern pages. You might want to set this property to __true__ after defining custom themes, to allow only specific themes to be used.
110+
This property indicates whether the default themes are hidden in the theme picker UI for modern pages. You might want to set this property to __true__ after you define custom themes, to allow only specific themes to be used.
108111

109112
__Namespace:__ Microsoft.Online.SharePoint.TenantAdministration.Tenant<br/>
110113
__Type:__ Boolean
@@ -118,7 +121,7 @@ __Return type:__ ClientResult<bool>
118121

119122
## Methods of the Microsoft.Online.SharePoint.TenantManagement.Tenant class
120123

121-
These methods can be used to manage themes in a multi-tenant environment.
124+
Use the following methods to manage themes in a multitenant environment.
122125

123126
### AddTenantTheme public method
124127
Add a theme to the tenant.
@@ -128,14 +131,14 @@ __Parameters:__ string name, string themeJson<br/>
128131
__Return type:__ ClientResult<bool>
129132

130133
### GetAllTenantThemes public method
131-
Retrieve all of the themes currently available in the tenant, including any custom themes that have been added. Default themes are only included if the __HideDefaultThemes__ property is __false__ (the default value).
134+
Retrieve all the themes that are currently available in the tenant, including any custom themes that have been added. Default themes are only included if the __HideDefaultThemes__ property is __false__ (the default value).
132135

133136
__Namespace:__ Microsoft.Online.SharePoint.TenantManagement.Tenant<br/>
134137
__Parameters:__ none<br/>
135138
__Return type:__ ClientObjectList<ThemeProperties>
136139

137140
### GetHideDefaultThemes public method
138-
Read the current setting for whether to hide default themes in the theme picker user interface.
141+
Read the current setting for whether to hide default themes in the theme picker UI.
139142

140143
__Namespace:__ Microsoft.Online.SharePoint.TenantManagement.Tenant<br/>
141144
__Parameters:__ none<br/>
@@ -149,7 +152,7 @@ __Parameters:__ string name<br/>
149152
__Return type:__ ThemeProperties
150153

151154
### SetHideDefaultThemes public method
152-
Specify whether to hide default themes in the theme picker user interface.
155+
Specify whether to hide default themes in the theme picker UI.
153156

154157
__Namespace:__ Microsoft.Online.SharePoint.TenantManagement.Tenant<br/>
155158
__Parameters:__ Boolean<br/>

0 commit comments

Comments
 (0)