Class RadWorksheetEditor
Represents the RadWorksheetEditor.
Inheritance
Inherited Members
Namespace: Telerik.WinForms.Controls.Spreadsheet.Worksheets
Assembly: Telerik.WinControls.RadSpreadsheet.dll
Syntax
public class RadWorksheetEditor : RadSheetEditorBase<Worksheet>, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IRadSheetEditor, ICommandDescriptorsProvider, ISheetEditor, IWorksheetUILayerOwner, IUILayerOwner, IDisposable
Constructors
RadWorksheetEditor(RadSpreadsheetElement)
Initializes a new instance of the Rad
Declaration
public RadWorksheetEditor(RadSpreadsheetElement owner)
Parameters
Rad
|
RadWorksheetEditor(SizeI, RadSpreadsheetElement)
Initializes a new instance of the Rad
Declaration
public RadWorksheetEditor(SizeI visibleSize, RadSpreadsheetElement owner)
Parameters
Size Size of the visible. |
Rad The owner Rad |
Fields
LeftMarginsPanelName
Left martgins panel name.
Declaration
public static readonly string LeftMarginsPanelName
Field Value
System.
|
TopMarginsPanelName
Top margins panel name.
Declaration
public static readonly string TopMarginsPanelName
Field Value
System.
|
Properties
ActivePresenter
Gets the active presenter.
Declaration
public IRadWorksheetEditorPresenter ActivePresenter { get; }
Property Value
IRad The active presenter. |
Commands
Gets the commands.
Declaration
public RadWorksheetEditorCommands Commands { get; }
Property Value
Rad The commands. |
Dialogs
Gets the dialogs.
Declaration
public WorksheetEditorDialogs Dialogs { get; }
Property Value
Worksheet The dialogs. |
FrozenCellIndex
Gets the index of the cell below the top frozen pane and to the right of the left frozen pane.
Declaration
public CellIndex FrozenCellIndex { get; }
Property Value
Cell The index of the frozen cell. |
HorizontalScrollMode
Gets or sets the horizontal scroll mode.
Declaration
public ScrollMode HorizontalScrollMode { get; set; }
Property Value
Scroll The horizontal scroll mode. |
IsHorizontalViewportUpdateSuspended
Gets the value indicating if the horizontal viewport update is suspended.
Declaration
public bool IsHorizontalViewportUpdateSuspended { get; }
Property Value
System. The value indicating if the horizontal viewport update is suspended. |
IsVerticalViewportUpdateSuspended
Gets the value indicating if the vertical viewport update is suspended.
Declaration
public bool IsVerticalViewportUpdateSuspended { get; }
Property Value
System. The value indicating if the vertical viewport update is suspended. |
Selection
Gets the selection.
Declaration
public Selection Selection { get; }
Property Value
Selection
The selection. |
SheetViewport
Gets the sheet viewport.
Declaration
public override SheetViewport SheetViewport { get; }
Property Value
Sheet The sheet viewport. |
Overrides
ShowGridlines
Gets or sets a value indicating whether to show gridlines.
Declaration
public bool ShowGridlines { get; set; }
Property Value
System. The value indicating whether to show gridlines. |
ShowRowColumnHeadings
Gets or sets a value indicating whether to show row and column headings.
Declaration
public bool ShowRowColumnHeadings { get; set; }
Property Value
System. The value indicating whether to show row and column headings. |
TopLeftCellIndex
Gets the index of the top left cell.
Declaration
public CellIndex TopLeftCellIndex { get; }
Property Value
Cell The index of the top left cell. |
VerticalScrollMode
Gets or sets the vertical scroll mode.
Declaration
public ScrollMode VerticalScrollMode { get; set; }
Property Value
Scroll The vertical scroll mode. |
VisibleSize
Gets the size of the visible.
Declaration
public SizeI VisibleSize { get; }
Property Value
Size The size of the visible. |
Worksheet
Gets or sets the worksheet.
Declaration
public Worksheet Worksheet { get; set; }
Property Value
Worksheet
The worksheet. |
Methods
ArrangeOverride(SizeF)
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.
|
Returns
System.
|
Overrides
BringIntoView(CellIndex)
Brings the into view.
Declaration
public void BringIntoView(CellIndex cellIndex)
Parameters
Cell Index of the cell. |
CircleInvalidData()
Circles the invalid data.
Declaration
public void CircleInvalidData()
Clear(ClearType)
Clears the selected cells.
Declaration
public void Clear(ClearType clearType)
Parameters
Clear Type of the clear. |
ClearInvalidDataCircles()
Clears the invalid data circles.
Declaration
public void ClearInvalidDataCircles()
Copy()
Copies the selected cell values and formatting.
Declaration
public bool Copy()
Returns
System.
|
CreateHistoryState()
Creates the state of the history.
Declaration
public RadWorksheetEditorHistoryState CreateHistoryState()
Returns
Rad The state of the history. |
Cut()
Cuts the selected cell values and formatting.
Declaration
public void Cut()
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Implements
Dispose(Boolean)
Disposes the specified clean up managed resources.
Declaration
protected virtual void Dispose(bool cleanUpManagedResources)
Parameters
System. The clean up managed resources. |
DisposeManagedResources()
Declaration
protected override void DisposeManagedResources()
Overrides
FreezePanes(CellIndex)
Freezes the panes.
Declaration
public void FreezePanes(CellIndex cellIndex)
Parameters
Cell Index of the cell. |
GetCellLayoutBox(Int32, Int32)
Gets the cell layout box.
Declaration
public CellLayoutBox GetCellLayoutBox(int rowIndex, int columnIndex)
Parameters
System. Index of the row. |
System. Index of the column. |
Returns
Cell The cell layout box. |
GetCellLayoutBox(CellIndex)
Gets the cell layout box.
Declaration
public CellLayoutBox GetCellLayoutBox(CellIndex cellIndex)
Parameters
Cell Index of the cell. |
Returns
Cell The cell layout box. |
InvalidatePresenterLayout()
Invalidates the presenter layout.
Declaration
public void InvalidatePresenterLayout()
MeasureOverride(SizeF)
When overridden in a derived class, measures the size in layout required
for child elements and determines a size for the System.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System. The available size that this element can give to child elements. Infinity can be specified as a value to indicate that the element will size to whatever content is available. |
Returns
System. The size that this element determines it needs during layout, based on its calculations of child element sizes. |
Overrides
OnActivePresenterChanged()
Called when the active presenter is changed.
Declaration
protected virtual void OnActivePresenterChanged()
OnFilterMenuOpened(FilterMenuPopupOpenedEventArgs)
Declaration
protected virtual void OnFilterMenuOpened(FilterMenuPopupOpenedEventArgs args)
Parameters
OnFilterMenuOpening(FilterMenuPopupOpeningEventArgs)
Declaration
protected virtual void OnFilterMenuOpening(FilterMenuPopupOpeningEventArgs args)
Parameters
OnHyperlinkClicked(HyperlinkClickedEventArgs)
Called when a hyperlink in the document is clicked.
Declaration
protected virtual void OnHyperlinkClicked(HyperlinkClickedEventArgs args)
Parameters
OnOwnerChanged()
Called when the owner is changed.
Declaration
protected override void OnOwnerChanged()
Overrides
OnOwnerChanging()
Raises the Owner
Declaration
protected override void OnOwnerChanging()
Overrides
OnScaleFactorChanged()
Raises the Scale
Declaration
protected override void OnScaleFactorChanged()
Overrides
OnScrollBarProviderChanged()
Called when the scroll bar provider is changed.
Declaration
protected override void OnScrollBarProviderChanged()
Overrides
OnScrollModeChanged()
Called when the scroll mode is changed.
Declaration
protected virtual void OnScrollModeChanged()
OnSheetChanged()
Raises the Sheet
Declaration
protected override void OnSheetChanged()
Overrides
OnSheetChanging()
Raises the Sheet
Declaration
protected override void OnSheetChanging()
Overrides
OpenHyperlink(HyperlinkInfo)
Opens the hyperlink.
Declaration
public void OpenHyperlink(HyperlinkInfo hyperlink)
Parameters
Hyperlink The hyperlink. |
Paste()
Pastes in the selected cells the cell values and formatting.
Declaration
public bool Paste()
Returns
System.
|
Paste(PasteOptions)
Pastes in the selected cells respecting the specified paste options.
Declaration
public bool Paste(PasteOptions pasteOptions)
Parameters
Paste The paste options. |
Returns
System.
|
PreserveSheetViewState(ISheetViewState)
Preserves the view state of the sheet.
Declaration
protected override void PreserveSheetViewState(ISheetViewState viewState)
Parameters
ISheet View state of the sheet. |
Overrides
ReceiveWeakEvent(Type, Object, EventArgs)
Receives events from the centralized event manager.
Declaration
public bool ReceiveWeakEvent(Type managerType, object sender, EventArgs e)
Parameters
System. The type of the System. |
System. Object that originated the event. |
System. Event data. |
Returns
System. true if the listener handled the event. It is considered an error by
the System. |
RestoreHistoryState(RadWorksheetEditorHistoryState)
Restores the state of the history.
Declaration
public void RestoreHistoryState(RadWorksheetEditorHistoryState historyState)
Parameters
Rad State of the history. |
RestoreSheetViewState(ISheetViewState)
Restores the view state of the sheet.
Declaration
protected override void RestoreSheetViewState(ISheetViewState viewState)
Parameters
ISheet View state of the sheet. |
Overrides
ResumeViewportUpdate()
Resumes the viewport update.
Declaration
public void ResumeViewportUpdate()
SetHorizontalOffset(Double)
Sets the horizontal offset.
Declaration
public override void SetHorizontalOffset(double offset)
Parameters
System. The offset. |
Overrides
SetVerticalOffset(Double)
Sets the vertical offset.
Declaration
public override void SetVerticalOffset(double offset)
Parameters
System. The offset. |
Overrides
ShouldArrangeChild(RadElement)
Declaration
protected override bool ShouldArrangeChild(RadElement child)
Parameters
Rad
|
Returns
System.
|
Overrides
ShouldMeasureChild(RadElement)
Declaration
protected override bool ShouldMeasureChild(RadElement child)
Parameters
Rad
|
Returns
System.
|
Overrides
SuspendViewportUpdate()
Suspends the viewport update.
Declaration
public void SuspendViewportUpdate()
UnfreezePanes()
Unfreezes the panes.
Declaration
public void UnfreezePanes()
UpdateToViewWithTopLeftCellIndex(CellIndex)
Updates the view port so the top left cell index is the desired one.
Declaration
public void UpdateToViewWithTopLeftCellIndex(CellIndex cellIndex)
Parameters
Cell The desired index of the top left visible cell. |
Events
ActivePresenterChanged
Occurs when the active presenter is changed.
Declaration
public event EventHandler ActivePresenterChanged
Event Type
System.
|
FilterMenuOpened
Declaration
public event FilterMenuPopupOpenedEventHandler FilterMenuOpened
Event Type
FilterMenuOpening
Declaration
public event FilterMenuPopupOpeningEventHandler FilterMenuOpening
Event Type
HyperlinkClicked
Occurs when a hyperlink in the document is clicked.
Declaration
public event EventHandler<HyperlinkClickedEventArgs> HyperlinkClicked
Event Type
System.
|
ScrollModeChanged
Occurs when the scroll mode is changed.
Declaration
public event EventHandler ScrollModeChanged
Event Type
System.
|