Class CreateNewThemeItemDialogContextBase<T>
Represents base for the context of the create new theme colors and fonts dialogs.
Namespace: Telerik.Windows.Controls.Spreadsheet.Dialogs
Assembly: Telerik.Windows.Controls.Spreadsheet.dll
Syntax
public abstract class CreateNewThemeItemDialogContextBase<T> : RadSpreadsheetDialogContext where T : NamedObjectBase
Type Parameters
T
|
Constructors
CreateNewThemeItemDialogContextBase(RadSpreadsheet, T)
Initializes a new instance of the CreateNewThemeItemDialogContextBase class.
Declaration
protected CreateNewThemeItemDialogContextBase(RadSpreadsheet radSpreadsheet, T schemeToEdit = null)
Parameters
RadSpreadsheet
radSpreadsheet
The RAD spreadsheet. |
T
schemeToEdit
The scheme to edit. |
Properties
CustomSchemes
Gets the custom schemes.
Declaration
protected abstract NamedObjects<T> CustomSchemes { get; }
Property Value
Telerik.Windows.Documents.Spreadsheet.Core.NamedObjects<T>
The custom schemes. |
OriginalSchemeName
Gets or sets the name of the original scheme.
Declaration
protected string OriginalSchemeName { get; set; }
Property Value
System.String
The name of the original scheme. |
SchemeName
Gets or sets the name of the scheme.
Declaration
public string SchemeName { get; set; }
Property Value
System.String
The name of the scheme. |
SchemeToEdit
Gets the scheme to edit.
Declaration
protected T SchemeToEdit { get; }
Property Value
T
The scheme to edit. |
Methods
ApplyChanges()
Applies the changes.
Declaration
public void ApplyChanges()
GenerateNewThemeScheme()
Generates the new theme scheme.
Declaration
protected abstract T GenerateNewThemeScheme()
Returns
T
The new theme scheme. |
GetNextFreeThemeSchemeName(String, NamedObjects<T>)
Gets the name of the next free theme scheme.
Declaration
protected string GetNextFreeThemeSchemeName(string namePrefix, NamedObjects<T> schemes)
Parameters
System.String
namePrefix
The name prefix. |
Telerik.Windows.Documents.Spreadsheet.Core.NamedObjects<T>
schemes
The schemes. |
Returns
System.String
The new name. |
InitializeContext(String, T)
Initializes the context.
Declaration
protected abstract void InitializeContext(string schemeName, T scheme)
Parameters
System.String
schemeName
Name of the scheme. |
T
scheme
The scheme. |