New to Telerik UI for WPFStart a free 30-day trial

Represents context for the StyleDialog.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Dialogs

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

C#
public class StyleDialogContext : RadSpreadsheetDialogContext

Inheritance: objectRadSpreadsheetDialogContextStyleDialogContext

Inherited Members RadSpreadsheetDialogContext.RadSpreadsheetRadSpreadsheetDialogContext.Owner

Constructors

Initializes a new instance of the StyleDialogContext class.

C#
public StyleDialogContext(RadWorksheetEditor worksheetEditor, CellStyle style, bool isDuplicating)
Parameters:worksheetEditorRadWorksheetEditor

The worksheet editor.

styleCellStyle

The style.

isDuplicatingbool

The value indicating whether the style name is duplicating.

Initializes a new instance of the StyleDialogContext class.

C#
public StyleDialogContext(RadWorksheetEditor worksheetEditor, CellStyle style)
Parameters:worksheetEditorRadWorksheetEditor

The worksheet editor.

styleCellStyle

The style.

Initializes a new instance of the StyleDialogContext class.

C#
public StyleDialogContext(RadWorksheetEditor worksheetEditor)
Parameters:worksheetEditorRadWorksheetEditor

The worksheet editor.

Properties

Gets a value indicating whether the style is new.

C#
public bool IsNewStyle { get; }
Property Value:

The value indicating whether the style is new.

Style

CellStyle

Gets the style.

C#
public CellStyle Style { get; }
Property Value:

The style.

Gets or sets the name of the style.

C#
public string StyleName { get; set; }
Property Value:

The name of the style.

Methods

Applies the changes.

C#
public bool ApplyChanges()
Returns:

bool

The value indicating whether the changes were applied successfully.