Inheritance
System.Object
BarRenderer
Implements
System.IDisposable
System.Windows.Forms.IMessageFilter
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Syncfusion.Tools.Windows.dll
public abstract class BarRenderer : IBarRenderer, IPopupChild, INeedKeyboardMessages, INeedMouseMoveMessages, IPopupParent, IPopupItem, IDndTrackingControl, IMouseHookHLProcClient, IKeyboardProcHookClient, IDisposable, IMessageFilter
Constructors
Declaration
public BarRenderer(IBarControl parent)
Parameters
Fields
Declaration
protected CommandBarDockState barAlignment
Field Value
Declaration
protected int clickedItem
Field Value
Declaration
protected int currentDndDropDown
Field Value
Declaration
protected int currentHotTrackItem
Field Value
Declaration
protected int currentTooltipItem
Field Value
Declaration
protected bool ignoreMouseMove
Field Value
Declaration
protected int ignoreMouseMoveTick
Field Value
Declaration
protected bool internalDragging
Field Value
Variable to detect if application is active or inactive.
Declaration
protected bool m_bXPMenuActive
Field Value
Declaration
protected int mouseDownItem
Field Value
Declaration
Field Value
Declaration
Field Value
Declaration
protected IBarControl parent
Field Value
Declaration
protected int selIndexOnDragStart
Field Value
Declaration
protected float separatorAreaX
Field Value
Declaration
protected RectangleF tdbounds
Field Value
Type |
System.Drawing.RectangleF |
Declaration
protected ToolTip tooltip
Field Value
Type |
System.Windows.Forms.ToolTip |
Properties
Declaration
public CommandBarDockState Alignment { get; set; }
Property Value
Declaration
public Bar Bar { get; set; }
Property Value
Declaration
public RectangleF Bounds { get; set; }
Property Value
Type |
System.Drawing.RectangleF |
Declaration
protected virtual CustomizingPopupMenu CustomizationPopup { get; }
Property Value
Declaration
public bool Customizing { get; }
Property Value
Declaration
public BarItem DelayedPerformClickOnBarItem { get; set; }
Property Value
Declaration
public bool DesignMode { get; }
Property Value
Declaration
public bool DndCustomizing { get; }
Property Value
Declaration
public bool HintViaHotKeyPrefix { get; set; }
Property Value
Declaration
public BarItems InvisibleBarItems { get; }
Property Value
IsMainMenu
Declaration
protected bool IsMainMenu { get; }
Property Value
Gets a value indicating wether the renderer has a vertical alignment.
Declaration
public bool IsVerticallyAligned { get; }
Property Value
Declaration
public bool LargeIcons { get; }
Property Value
Declaration
protected bool NeedDropDown { get; set; }
Property Value
Declaration
public bool NeedLayout { get; }
Property Value
Declaration
public IPopupParent PopupParent { get; }
Property Value
Returns the currently selected bar item in the corresponding toolbar.
Declaration
public BarItem SelectedItem { get; }
Property Value
Type |
Description |
BarItem |
This will return null if no bar item is currently selected.
|
Declaration
public VisualStyle Style { get; set; }
Property Value
Declaration
public bool ThemesEnabled { get; set; }
Property Value
Methods
Declaration
protected virtual PointF ApplyDrawingTransform(PointF point, bool apply)
Parameters
Type |
Name |
Description |
System.Drawing.PointF |
point |
|
System.Boolean |
apply |
|
Returns
Type |
System.Drawing.PointF |
Declaration
protected virtual RectangleF ApplyDrawingTransform(RectangleF rect, bool apply)
Parameters
Type |
Name |
Description |
System.Drawing.RectangleF |
rect |
|
System.Boolean |
apply |
|
Returns
Type |
System.Drawing.RectangleF |
Declaration
[Obsolete("Use RectangleF ApplyTransform( Graphics g, CommandBarDockState align, RectangleF rect, bool apply ) instead.")]
public static RectangleF ApplyTransform(Graphics g, CommandBarDockState align, BarStyle barStyle, RectangleF rect, bool apply)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
CommandBarDockState |
align |
|
BarStyle |
barStyle |
|
System.Drawing.RectangleF |
rect |
|
System.Boolean |
apply |
|
Returns
Type |
System.Drawing.RectangleF |
Declaration
public static RectangleF ApplyTransform(Graphics g, CommandBarDockState align, RectangleF rect, bool apply)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
CommandBarDockState |
align |
|
System.Drawing.RectangleF |
rect |
|
System.Boolean |
apply |
|
Returns
Type |
System.Drawing.RectangleF |
Declaration
protected virtual void Bar_PropertyChanged(object sender, SyncfusionPropertyChangedEventArgs e)
Parameters
Declaration
protected virtual void BarItem_PropertyChanged(object sender, SyncfusionPropertyChangedEventArgs e)
Parameters
Declaration
protected void CancelHidingDropDown()
Declaration
public bool CanDropItem(BarItem item)
Parameters
Returns
Declaration
public bool CanStartKeyboardNavigation()
Returns
Declaration
public virtual void ChildClosing(IPopupChild childUI, PopupCloseType popupCloseType)
Parameters
Declaration
protected virtual void CloseDropdowns()
Declaration
public abstract void ComputeBarItemPositions(IGraphicsProvider gp)
Parameters
Declaration
protected virtual CustomizingPopupMenu CreateCustomizationPopup()
Returns
Declaration
protected virtual IBarItemRenderer CreateNewRenderer(BarItem barItem)
Parameters
Type |
Name |
Description |
BarItem |
barItem |
|
Returns
Declaration
protected void CreateToolTip()
Declaration
protected virtual void CustomizationBegin(object sender, EventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.EventArgs |
e |
|
Declaration
protected virtual void CustomizationDone(object sender, EventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.EventArgs |
e |
|
Declaration
public virtual void Detach()
Declaration
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
Declaration
protected void DisposeTooltip()
Declaration
protected virtual void DrawAdornments(Graphics g)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
Declaration
protected void Finalize()
Declaration
protected virtual DragDropEffects GetAllowedDragEffects()
Returns
Type |
System.Windows.Forms.DragDropEffects |
Declaration
public IBarControl GetBarControl()
Returns
Declaration
public virtual Rectangle GetBarItemBounds(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Type |
System.Drawing.Rectangle |
Declaration
public virtual Point[] GetBorderOverlapCue(PopupRelativeAlignment rAlign)
Parameters
Returns
Type |
System.Drawing.Point[] |
Declaration
public Rectangle GetBoundsOf(BarItem item)
Parameters
Returns
Type |
System.Drawing.Rectangle |
Declaration
public Control GetControl()
Returns
Type |
System.Windows.Forms.Control |
Declaration
public Rectangle GetCueRect(BarItem barItem, bool beforeOrAfter)
Parameters
Type |
Name |
Description |
BarItem |
barItem |
|
System.Boolean |
beforeOrAfter |
|
Returns
Type |
System.Drawing.Rectangle |
Declaration
protected IDropDownItem GetCurrentRenderer()
Returns
Declaration
public virtual PopupRelativeAlignment GetFirstPopupAlignPreference()
Returns
Declaration
public virtual Point GetLocationForPopupAlignment(PopupRelativeAlignment prevAlign, out PopupRelativeAlignment newAlign)
Parameters
Returns
Type |
System.Drawing.Point |
Declaration
public virtual Control GetPopupParentControl()
Returns
Type |
System.Windows.Forms.Control |
Declaration
public abstract void GetPreferredSize(IGraphicsProvider gp, ref SizeF preferredSize)
Parameters
Declaration
public virtual void HidePopup(PopupCloseType popupCloseType)
Parameters
Declaration
public BarItem HitTestBarItem(Point mousePosition, ref bool beforeOrAfter)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
mousePosition |
|
System.Boolean |
beforeOrAfter |
|
Returns
Declaration
public int HitTestBarItems(PointF mousePosition)
Parameters
Type |
Name |
Description |
System.Drawing.PointF |
mousePosition |
|
Returns
Declaration
protected virtual void InvalidateBarItems(int[] barItemIndices)
Parameters
Type |
Name |
Description |
System.Int32[] |
barItemIndices |
|
Declaration
public virtual void InvalidateCachedTextSizes()
Declaration
public static bool IsInteger(float value)
Parameters
Type |
Name |
Description |
System.Single |
value |
|
Returns
Declaration
public bool IsKeyboardNavigationOn()
Returns
Declaration
public virtual bool IsRelatedControl(Control control, bool askPopupParent)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Control |
control |
|
System.Boolean |
askPopupParent |
|
Returns
Declaration
public virtual bool IsShowing()
Returns
Declaration
public bool IsShowingDropdown()
Returns
Declaration
public virtual bool KeyboardMessage(ref Message m)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Message |
m |
|
Returns
Declaration
public virtual void Layout(IGraphicsProvider gp)
Parameters
Declaration
public virtual bool MouseMessage(ref Message m)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Message |
m |
|
Returns
Declaration
protected virtual bool MoveSelection(MoveHint hint)
Parameters
Returns
Declaration
protected virtual void OnBarItemsCollectionChanged()
Declaration
protected virtual void OnBoundsAffected()
Declaration
protected void OnCustomizingItemIndexChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
public virtual void OnDragDrop(DragEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.DragEventArgs |
e |
|
Declaration
public virtual void OnDragLeave(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
public virtual void OnDragOver(DragEventArgs drgevent)
Parameters
Type |
Name |
Description |
System.Windows.Forms.DragEventArgs |
drgevent |
|
Declaration
protected virtual void OnEndDragging()
Declaration
public void OnFormDeactivated()
Declaration
public virtual void OnGiveFeedback(GiveFeedbackEventArgs gfbevent)
Parameters
Type |
Name |
Description |
System.Windows.Forms.GiveFeedbackEventArgs |
gfbevent |
|
See System.Windows.Forms.Control.OnMouseDoubleClick(System.Windows.Forms.MouseEventArgs).
Declaration
public virtual void OnMouseDoubleClick(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Declaration
public virtual bool OnMouseDown(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Returns
Declaration
public virtual void OnMouseLeave(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
public virtual void OnMouseMove(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Declaration
public virtual void OnMouseUp(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Declaration
public virtual void OnMouseWheel(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Declaration
public virtual void OnPaint(Graphics g, Rectangle clipRect)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
clipRect |
|
Declaration
protected virtual void OnRightMouseDown(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Declaration
protected virtual void OnStartDragging()
Declaration
public bool PreFilterMessage(ref Message m)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Message |
m |
|
Returns
Declaration
public virtual bool ProcessCmdKey(ref Message msg, Keys keyData)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Message |
msg |
|
System.Windows.Forms.Keys |
keyData |
|
Returns
Declaration
protected virtual bool ProcessKeyDown(Keys key)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Keys |
key |
|
Returns
Declaration
public virtual bool ProcessMnemonic(char charCode)
Parameters
Type |
Name |
Description |
System.Char |
charCode |
|
Returns
Declaration
public virtual bool ProcessShortcut(char c)
Parameters
Type |
Name |
Description |
System.Char |
c |
|
Returns
Declaration
protected virtual void RemoveBarItemRenderers(bool forceRemove)
Parameters
Type |
Name |
Description |
System.Boolean |
forceRemove |
|
Declaration
protected virtual void RemoveRenderer(IBarItemRenderer renderer, int curPos)
Parameters
Declaration
protected virtual void ResetDragging()
Declaration
protected void ResetHotTracking()
Declaration
public void SetCurrentTrackItem(int newHitBarItem, bool forceDropDown, bool setDefaultSelection)
Parameters
Type |
Name |
Description |
System.Int32 |
newHitBarItem |
|
System.Boolean |
forceDropDown |
|
System.Boolean |
setDefaultSelection |
|
Declaration
public void SetHotTrack(BarItemRenderer renderer, bool hotTrack)
Parameters
Declaration
protected void SetNeedLayout(bool needLayout)
Parameters
Type |
Name |
Description |
System.Boolean |
needLayout |
|
Declaration
protected virtual bool ShouldDrawVisible(BarItem item, bool excludeControlBasedItems)
Parameters
Type |
Name |
Description |
BarItem |
item |
|
System.Boolean |
excludeControlBasedItems |
|
Returns
Declaration
public void StartKeyboardNavigation()
Declaration
public void StopKeyboardNavigation()
Declaration
protected virtual void ValidateDndHelper()
Declaration
protected virtual void VeryifyMouseBasedDeactivation(Control destinationControl, int msg)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Control |
destinationControl |
|
System.Int32 |
msg |
|
Explicit Interface Implementations
Declaration
bool IKeyboardProcHookClient.KeyboardHookProc(int wParam, int lParam)
Parameters
Type |
Name |
Description |
System.Int32 |
wParam |
|
System.Int32 |
lParam |
|
Returns
Declaration
bool IMouseHookHLProcClient.MouseHookProc(int msg, Point point, IntPtr hwnd, int wHitTestCode, int dwExtraInfo)
Parameters
Type |
Name |
Description |
System.Int32 |
msg |
|
System.Drawing.Point |
point |
|
System.IntPtr |
hwnd |
|
System.Int32 |
wHitTestCode |
|
System.Int32 |
dwExtraInfo |
|
Returns
Declaration
bool IPopupParent.IsRightToLeft { get; }
Returns
Declaration
void IBarRenderer.RemoveRenderer(IBarItemRenderer renderer)
Parameters
Declaration
void IBarRenderer.UpdateRenderers()
Implements
System.IDisposable
System.Windows.Forms.IMessageFilter