Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadSpreadsheet.dll
Syntax:
public class RadSpreadsheetSheetSelector : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementRadSpreadsheetSheetSelector...
Implements:
Inherited Members
Constructors
public RadSpreadsheetSheetSelector()
Fields
protected bool draggingGrip
protected Point mouseDownPosition
protected float startGripRatio
Properties
public RadWorksheetEditor ActiveWorksheetEditor { get; }
public bool EnableScrollingAnimation { get; set; }
public bool IsAddButtonVisible { get; set; }
public bool IsInEditMode { get; }
Gets the rename sheet command.
public ICommand RenameSheetCommand { get; }
The rename sheet command.
public AnimatedPropertySetting ScrollAnimation { get; }
public RadScrollBarElement ScrollBar { get; }
Gets the scroll offset applied to the sheet tabs.
[Browsable(false)]
public int ScrollOffset { get; }
public RadSpreadsheetElement SpreadsheetElement { get; }
Methods
protected virtual void AddInsertSheetTabItem()
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
protected virtual void AttachToActiveWorksheetEditorEventsEvents()
protected virtual void AttachToSheetsCollectionEvents(SheetCollection sheets)
protected virtual void AttachToSheetSelectorElementEvents()
public virtual void BeginEdit()
public virtual void CancelEdit()
protected virtual AddNewSheetSelectorTabItem CreateAddNewSheetSelectorTabItem()
Called by the element when constructed. Allows inheritors to build the element tree.
protected override void CreateChildElements()
Overrides:
protected virtual SheetSelectorTabItem CreateNewSheetSelectorTabItem(Sheet sheet)
protected virtual SheetTabItemsContainerElement CreateSheetTabItemsContainer()
protected virtual void DetachFromActiveWorksheetEditorEventsEvents()
protected virtual void DetachFromSheetsCollectionEvents(SheetCollection sheets)
protected virtual void DetachFromSheetSelectorElementEvents()
Disposes of managed resources including cached images and SVG images when the element is being disposed.
protected override void DisposeManagedResources()
Overrides:
public virtual void EndEdit()
protected virtual void EnsureDefaultContextMenu()
Initializes the internal fields and components of the LightVisualElement. This method sets up text primitives, image primitives, and layout management components.
protected override void InitializeFields()
Overrides:
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
Called when a mouse button is pressed down over the item.
protected override void OnMouseDown(MouseEventArgs e)
The mouse event arguments.
Overrides:
Handles property change events by invalidating the fill cache and invoking the base class property change handler.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Event arguments containing information about the property that changed.
Overrides:
Notifies that the element has been successfully unloaded from an element tree. Allows inheritors to provide custom logic at this stage.
protected override void OnUnloaded(ComponentThemableElementTree oldTree)
Reference to the element tree from which the element has been unloaded.
Overrides:
protected virtual bool RenameSheet(SheetSelectorTabItem tabItem, string name)
protected virtual void SetDarkIcons()
protected virtual void SetStandardIcons()
protected virtual void ShowSheetSelectorContextMenu(SheetSelectorTabItem currentItem, MouseEventArgs e)
public virtual void UpdateIconSet()