Class
CreateNewThemeItemDialogContextBase<T>

Represents base for the context of the create new theme colors and fonts dialogs.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Dialogs

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Type Parameters:

T

Syntax:

cs-api-definition
public abstract class CreateNewThemeItemDialogContextBase<T> : RadSpreadsheetDialogContext where T : NamedObjectBase

Inheritance: objectRadSpreadsheetDialogContextCreateNewThemeItemDialogContextBase<T>

Derived Classes: CreateNewThemeColorsDialogContextCreateNewThemeFontsDialogContext

Inherited Members RadSpreadsheetDialogContext.RadSpreadsheetRadSpreadsheetDialogContext.Owner

Constructors

CreateNewThemeItemDialogContextBase(RadSpreadsheet, T)

Initializes a new instance of the class.

Declaration

cs-api-definition
protected CreateNewThemeItemDialogContextBase(RadSpreadsheet radSpreadsheet, T schemeToEdit = default)

Parameters

radSpreadsheet

RadSpreadsheet

The RAD spreadsheet.

schemeToEdit

T

The scheme to edit.

Properties

CustomSchemes

Gets the custom schemes.

Declaration

cs-api-definition
protected abstract NamedObjects<T> CustomSchemes { get; }

Property Value

NamedObjects<T>

The custom schemes.

OriginalSchemeName

Gets or sets the name of the original scheme.

Declaration

cs-api-definition
protected string OriginalSchemeName { get; set; }

Property Value

string

The name of the original scheme.

SchemeName

Gets or sets the name of the scheme.

Declaration

cs-api-definition
public string SchemeName { get; set; }

Property Value

string

The name of the scheme.

SchemeToEdit

Gets the scheme to edit.

Declaration

cs-api-definition
protected T SchemeToEdit { get; }

Property Value

T

The scheme to edit.

Methods

ApplyChanges()

Applies the changes.

Declaration

cs-api-definition
public void ApplyChanges()

GenerateNewThemeScheme()

Generates the new theme scheme.

Declaration

cs-api-definition
protected abstract T GenerateNewThemeScheme()

Returns

T

The new theme scheme.

GetNextFreeThemeSchemeName(string, NamedObjects<T>)

Gets the name of the next free theme scheme.

Declaration

cs-api-definition
protected string GetNextFreeThemeSchemeName(string namePrefix, NamedObjects<T> schemes)

Parameters

namePrefix

string

The name prefix.

schemes

NamedObjects<T>

The schemes.

Returns

string

The new name.

InitializeContext(string, T)

Initializes the context.

Declaration

cs-api-definition
protected abstract void InitializeContext(string schemeName, T scheme)

Parameters

schemeName

string

Name of the scheme.

scheme

T

The scheme.