RadSpreadsheet
Represents the RadSpreadsheet control.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.Spreadsheet.dll
Syntax:
[TelerikToolboxCategory("Documents")]
public class RadSpreadsheet : ControlBase, IScrollBarsProvider, ICommandDescriptorsProvider, IWeakEventListener
Inheritance: objectControlBaseRadSpreadsheet
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadSpreadsheet class.
public RadSpreadsheet()
Fields
ActiveSheetEditorProperty
DependencyProperty
Active sheet editor dependency property.
public static readonly DependencyProperty ActiveSheetEditorProperty
ColorPaletteProperty
DependencyProperty
Color palette dependency property.
public static readonly DependencyProperty ColorPaletteProperty
CommandDescriptorsProperty
DependencyProperty
Command descriptors dependency property.
public static readonly DependencyProperty CommandDescriptorsProperty
FillHandleSelectionStrokeProperty
DependencyProperty
Fill handle selection stroke dependency property.
public static readonly DependencyProperty FillHandleSelectionStrokeProperty
SelectionFillProperty
DependencyProperty
Selection fill dependency property.
public static readonly DependencyProperty SelectionFillProperty
SelectionStrokeProperty
DependencyProperty
Selection stroke dependency property.
public static readonly DependencyProperty SelectionStrokeProperty
SelectionStrokeThicknessProperty
DependencyProperty
Selection stroke thickness dependency property.
public static readonly DependencyProperty SelectionStrokeThicknessProperty
WorkbookProperty
DependencyProperty
Workbook dependency property.
public static readonly DependencyProperty WorkbookProperty
WorksheetEditorContextMenuProperty
DependencyProperty
Worksheet editor context menu dependency property.
public static readonly DependencyProperty WorksheetEditorContextMenuProperty
Properties
ActiveSheet
Sheet
Gets or sets the active sheet.
public Sheet ActiveSheet { get; set; }
The active sheet.
Gets the active sheet editor.
public IRadSheetEditor ActiveSheetEditor { get; }
The active sheet editor.
ActiveWorksheet
Worksheet
Gets or sets the active worksheet.
public Worksheet ActiveWorksheet { get; set; }
The active worksheet.
Gets or sets the active worksheet editor.
public RadWorksheetEditor ActiveWorksheetEditor { get; set; }
The active worksheet editor.
Gets or sets the color palette.
public SpreadsheetColorPalette ColorPalette { get; set; }
The color palette.
Gets the command descriptors.
public CommandDescriptors CommandDescriptors { get; }
The command descriptors.
Implements:
Gets or sets a value indicating whether automation peers for the visible cells should be created by the owned RadSpreadsheetAutomationPeer.
[Browsable(false)]
public bool CreateVisualCellsAutomationPeers { get; set; }
The value indicating whether automation peers for the visible cells should be created by the owned RadSpreadsheetAutomationPeer.
Setting this property to false will stop owned RadSpreadsheetAutomationPeer from creating child automation peers for each of the visible cells. This may increase performance and decrease memory consumption on some touch-enabled computers, where the automation tree is created on application startup.
Gets or sets the fill handle selection stroke.
public Brush FillHandleSelectionStroke { get; set; }
The fill handle selection stroke.
Gets the fonts provider.
public FontsProvider FontsProvider { get; }
The fonts provider.
Gets a collection of the available format providers.
If format providers are not explicitly added, format providers registered in are used.
public WorkbookFormatProvidersCollection FormatProviders { get; }
The format providers.
HorizontalScrollBar
ScrollBar
Gets the horizontal scroll bar.
public ScrollBar HorizontalScrollBar { get; }
The horizontal scroll bar.
Implements:
SelectionFill
Brush
Gets or sets the selection fill.
public Brush SelectionFill { get; set; }
The selection fill.
SelectionStroke
Brush
Gets or sets the selection stroke.
public Brush SelectionStroke { get; set; }
The selection stroke.
Gets or sets the selection stroke thickness.
public double SelectionStrokeThickness { get; set; }
The selection stroke thickness.
Gets or sets the RadSpreadsheetSheetSelector context menu.
public RadContextMenu SheetSelectorContextMenu { get; set; }
The RadSpreadsheetSheetSelector context menu.
Theme
DocumentTheme
Gets or sets the theme.
public DocumentTheme Theme { get; set; }
The theme.
Gets the themes manager.
public RadSpreadsheetThemesManager ThemesManager { get; }
The themes manager.
VerticalScrollBar
ScrollBar
Gets the vertical scroll bar.
public ScrollBar VerticalScrollBar { get; }
The vertical scroll bar.
Implements:
VisibleSize
SizeI
Gets or sets the visible size.
public SizeI VisibleSize { get; set; }
The visible size.
Workbook
Workbook
Gets or sets the workbook.
public Workbook Workbook { get; set; }
The workbook.
Gets or sets the worksheet editor context menu.
public RadContextMenu WorksheetEditorContextMenu { get; set; }
The worksheet editor context menu.
Gets or sets the worksheet UI layers builder.
public WorksheetUILayersBuilder WorksheetUILayersBuilder { get; set; }
The worksheet UI layers builder.
Methods
Begins the undo group.
public void BeginUndoGroup()
Cancels the undo group.
public void CancelUndoGroup()
Ends the undo group.
public void EndUndoGroup()
Invalidates the layout.
public void InvalidateLayout()
Called when the active sheet is changed.
protected virtual void OnActiveSheetChanged()
Called when the active sheet editor is changed.
protected virtual void OnActiveSheetEditorChanged()
When overridden in a derived class, is invoked whenever application code or internal processes call .
public override void OnApplyTemplate()
OnCreateAutomationPeer()
AutomationPeer
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
The type-specific AutomationPeer implementation.
Raises the routed event by using the event data provided.
protected override void OnGotFocus(RoutedEventArgs e)
A RoutedEventArgs that contains event data. This event data must contain the identifier for the event.
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Raises the event.
protected virtual void OnMessageShowing(MessageShowingEventArgs args)
The MessageShowingEventArgs instance containing the event data.
Called when the template is applying.
protected virtual void OnTemplateApplying()
Called when the workbook is changed.
protected virtual void OnWorkbookChanged()
Called when the workbook is changing.
protected virtual void OnWorkbookChanging()
Raises the event.
protected virtual void OnWorkbookCommandError(CommandErrorEventArgs args)
The CommandErrorEventArgs instance containing the event data.
Raises the event.
protected virtual void OnWorkbookCommandExecuted(CommandExecutedEventArgs args)
The CommandExecutedEventArgs instance containing the event data.
Raises the event.
protected virtual void OnWorkbookCommandExecuting(CommandExecutingEventArgs args)
The CommandExecutingEventArgs instance containing the event data.
Prints using the specified print what settings.
public void Print(PrintWhatSettings printWhatSettings, PrintDialog printDialog, string printDescription = null)
The print what settings.
printDialogPrintDialogThe print dialog.
printDescriptionstringThe print description.
Prints using the specified print what settings.
public void Print(PrintWhatSettings printWhatSettings, string printDescription = null)
The print what settings.
printDescriptionstringThe print description.
Receives events from the centralized event manager.
public bool ReceiveWeakEvent(Type managerType, object sender, EventArgs e)
The type of the calling this method.
senderobjectObject that originated the event.
eEventArgsEvent data.
Returns:true if the listener handled the event. It is considered an error by the handling in WPF to register a listener for an event that the listener does not handle. Regardless, the method should return false if it receives an event that it does not recognize or handle.
Sets the horizontal offset.
Sets the vertical offset.
Events
Occurs when the active sheet is changed.
public event EventHandler ActiveSheetChanged
Occurs when the active sheet editor is changed.
public event EventHandler ActiveSheetEditorChanged
Occurs when the user is presented with a warning message.
public event EventHandler<MessageShowingEventArgs> MessageShowing
Occurs when the workbook is changed.
public event EventHandler WorkbookChanged
Occurs when the workbook is changing.
public event EventHandler WorkbookChanging
WorkbookCommandError
EventHandler<CommandErrorEventArgs>
Occurs when workbook command error occurs.
public event EventHandler<CommandErrorEventArgs> WorkbookCommandError
WorkbookCommandExecuted
EventHandler<CommandExecutedEventArgs>
Occurs when workbook command is executed.
public event EventHandler<CommandExecutedEventArgs> WorkbookCommandExecuted
WorkbookCommandExecuting
EventHandler<CommandExecutingEventArgs>
Occurs when workbook command is executing.
public event EventHandler<CommandExecutingEventArgs> WorkbookCommandExecuting
Occurs when the workbook content is changed.
public event EventHandler WorkbookContentChanged