menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DropDownBarItemRenderer - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DropDownBarItemRenderer

    Inheritance
    System.Object
    BarItemRenderer
    DropDownBarItemRenderer
    Implements
    IBarItemRenderer
    System.IDisposable
    IDropDownItem
    Inherited Members
    BarItemRenderer.AddTextPreferredSize(IGraphicsProvider, SizeF)
    BarItemRenderer.ApplyTransform(Graphics)
    BarItemRenderer.BarItem
    BarItemRenderer.BarItemPropertyChanged(SyncfusionPropertyChangedEventArgs)
    BarItemRenderer.Bounds
    BarItemRenderer.Dispose()
    BarItemRenderer.Dispose(Boolean)
    BarItemRenderer.DrawFocusRect(Graphics, RectangleF, Color, Color)
    BarItemRenderer.DrawInterior(DrawToolbarItemEventArgs)
    BarItemRenderer.DrawSeparator(Graphics)
    BarItemRenderer.DrawSeparator(Graphics, RectangleF)
    BarItemRenderer.DrawText(Graphics, String, Font, Color, RectangleF, TextFormatFlags)
    BarItemRenderer.DrawTextAndImage(Graphics, RectangleF, Font, Brush, Color, DrawItemState)
    BarItemRenderer.DropDown(Boolean, Boolean, Queue)
    BarItemRenderer.DropDownAreaX
    BarItemRenderer.GetBorderCheckPen(String)
    BarItemRenderer.GetBorderPen(String)
    BarItemRenderer.GetBorderPressPen(String)
    BarItemRenderer.GetCheckedItemLightColor(VisualStyle)
    BarItemRenderer.GetCurrentThemeState(DrawToolbarItemEventArgs)
    BarItemRenderer.GetDropDownAreaWidth()
    BarItemRenderer.GetForeColorOffice2003(DrawItemState)
    BarItemRenderer.GetForeColorOffice2007(DrawItemState)
    BarItemRenderer.GetForeColorOffice2010(DrawItemState)
    BarItemRenderer.GetForeColorOffice2016(DrawItemState)
    BarItemRenderer.GetForeColorVS2005(DrawItemState)
    BarItemRenderer.GetHighlightItemDarkColor(VisualStyle)
    BarItemRenderer.GetMainManager()
    BarItemRenderer.GetTextPosition(Graphics, String, Font, RectangleF, StringFormat)
    BarItemRenderer.GetTextPosition(Graphics, String, Font, RectangleF, TextFormatFlags)
    BarItemRenderer.HitTest(PointF)
    BarItemRenderer.HotTrack
    BarItemRenderer.ImageTextPadding
    BarItemRenderer.InvalidateCachedTextSizes()
    BarItemRenderer.IsDisposed
    BarItemRenderer.IsHorizontalAligned
    BarItemRenderer.IsParentMainMenu
    BarItemRenderer.IsRTL
    BarItemRenderer.IsTextOnly()
    BarItemRenderer.lastDrawnBounds
    BarItemRenderer.MeasureText(Graphics, String, Font)
    BarItemRenderer.MeasureText(Graphics, String, Font, TextFormatFlags)
    BarItemRenderer.NeedCenterVAlign
    BarItemRenderer.OnMouseWheel(Boolean)
    BarItemRenderer.OnPaint(Graphics, Rectangle)
    BarItemRenderer.PadX
    BarItemRenderer.PadY
    BarItemRenderer.parent
    BarItemRenderer.ProcessKeyDown(Keys)
    BarItemRenderer.Repaint()
    BarItemRenderer.showDefaultSelectionInDropdown
    BarItemRenderer.ShowDropShadow
    BarItemRenderer.ShowHighlightRectangle
    BarItemRenderer.Style
    BarItemRenderer.ThemesEnabled
    BarItemRenderer.Visible
    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()
    Namespace: Syncfusion.Windows.Forms.Tools.XPMenus
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class DropDownBarItemRenderer : BarItemRenderer, IBarItemRenderer, IDisposable, IDropDownItem

    Constructors

    DropDownBarItemRenderer(IBarRenderer)

    Declaration
    public DropDownBarItemRenderer(IBarRenderer parent)
    Parameters
    Type Name Description
    IBarRenderer parent

    Fields

    popupChild

    Declaration
    protected IPopupChild popupChild
    Field Value
    Type
    IPopupChild

    popupParent

    Declaration
    protected IPopupParent popupParent
    Field Value
    Type
    IPopupParent

    Properties

    Active

    Declaration
    public override bool Active { get; set; }
    Property Value
    Type
    System.Boolean
    Overrides
    BarItemRenderer.Active

    ShowingDropDown

    Declaration
    public override bool ShowingDropDown { get; set; }
    Property Value
    Type
    System.Boolean
    Overrides
    BarItemRenderer.ShowingDropDown

    Methods

    AfterChildClosing()

    Declaration
    public virtual void AfterChildClosing()

    ChildClosing(IPopupChild, PopupCloseType)

    Declaration
    public virtual void ChildClosing(IPopupChild childUI, PopupCloseType popupCloseType)
    Parameters
    Type Name Description
    IPopupChild childUI
    PopupCloseType popupCloseType

    DrawBackground(DrawToolbarItemEventArgs, Boolean)

    Declaration
    protected override void DrawBackground(DrawToolbarItemEventArgs drawItemInfo, bool useThemes)
    Parameters
    Type Name Description
    DrawToolbarItemEventArgs drawItemInfo
    System.Boolean useThemes
    Overrides
    BarItemRenderer.DrawBackground(DrawToolbarItemEventArgs, Boolean)

    DrawBorders(DrawToolbarItemEventArgs, Boolean)

    Declaration
    protected override void DrawBorders(DrawToolbarItemEventArgs drawItemInfo, bool useThemes)
    Parameters
    Type Name Description
    DrawToolbarItemEventArgs drawItemInfo
    System.Boolean useThemes
    Overrides
    BarItemRenderer.DrawBorders(DrawToolbarItemEventArgs, Boolean)

    DrawTextAndImage(Graphics, RectangleF, Font, Color, Color, DrawItemState)

    Declaration
    protected override void DrawTextAndImage(Graphics g, RectangleF rectTextAndImage, Font textFont, Color textColor, Color bgColor, DrawItemState state)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.RectangleF rectTextAndImage
    System.Drawing.Font textFont
    System.Drawing.Color textColor
    System.Drawing.Color bgColor
    System.Windows.Forms.DrawItemState state
    Overrides
    BarItemRenderer.DrawTextAndImage(Graphics, RectangleF, Font, Color, Color, DrawItemState)

    GetBGColor()

    Declaration
    protected override Color GetBGColor()
    Returns
    Type
    System.Drawing.Color
    Overrides
    BarItemRenderer.GetBGColor()

    GetBGColor2()

    Declaration
    protected override Color GetBGColor2()
    Returns
    Type
    System.Drawing.Color
    Overrides
    BarItemRenderer.GetBGColor2()

    GetBorderOverlapCue(PopupRelativeAlignment)

    Declaration
    public virtual Point[] GetBorderOverlapCue(PopupRelativeAlignment rAlign)
    Parameters
    Type Name Description
    PopupRelativeAlignment rAlign
    Returns
    Type
    System.Drawing.Point[]

    GetDrawingBounds()

    Declaration
    protected override RectangleF GetDrawingBounds()
    Returns
    Type
    System.Drawing.RectangleF
    Overrides
    BarItemRenderer.GetDrawingBounds()

    GetDrawState()

    Declaration
    protected override ItemState GetDrawState()
    Returns
    Type
    ItemState
    Overrides
    BarItemRenderer.GetDrawState()

    GetFirstAlignPreference()

    Declaration
    protected PopupRelativeAlignment GetFirstAlignPreference()
    Returns
    Type
    PopupRelativeAlignment

    GetForeColor(DrawItemState)

    Declaration
    protected override Color GetForeColor(DrawItemState state)
    Parameters
    Type Name Description
    System.Windows.Forms.DrawItemState state
    Returns
    Type
    System.Drawing.Color
    Overrides
    BarItemRenderer.GetForeColor(DrawItemState)

    GetForeColorDefault(DrawItemState)

    Declaration
    protected override Color GetForeColorDefault(DrawItemState state)
    Parameters
    Type Name Description
    System.Windows.Forms.DrawItemState state
    Returns
    Type
    System.Drawing.Color
    Overrides
    BarItemRenderer.GetForeColorDefault(DrawItemState)

    GetHighlightItemLightColor(VisualStyle)

    Declaration
    protected override Color GetHighlightItemLightColor(VisualStyle style)
    Parameters
    Type Name Description
    VisualStyle style
    Returns
    Type
    System.Drawing.Color
    Overrides
    BarItemRenderer.GetHighlightItemLightColor(VisualStyle)

    GetLastAlignPreference()

    Declaration
    protected virtual PopupRelativeAlignment GetLastAlignPreference()
    Returns
    Type
    PopupRelativeAlignment

    GetLocationForPopupAlignment(PopupRelativeAlignment, out PopupRelativeAlignment)

    Declaration
    public Point GetLocationForPopupAlignment(PopupRelativeAlignment prevAlign, out PopupRelativeAlignment newAlign)
    Parameters
    Type Name Description
    PopupRelativeAlignment prevAlign
    PopupRelativeAlignment newAlign
    Returns
    Type
    System.Drawing.Point

    GetLocationForPopupAlignment(PopupRelativeAlignment, out PopupRelativeAlignment, Boolean)

    Declaration
    public Point GetLocationForPopupAlignment(PopupRelativeAlignment prevAlign, out PopupRelativeAlignment newAlign, bool bIsRightToLeft)
    Parameters
    Type Name Description
    PopupRelativeAlignment prevAlign
    PopupRelativeAlignment newAlign
    System.Boolean bIsRightToLeft
    Returns
    Type
    System.Drawing.Point

    GetPopupParentControl()

    Declaration
    public Control GetPopupParentControl()
    Returns
    Type
    System.Windows.Forms.Control

    GetPreferredSize(IGraphicsProvider)

    Declaration
    public override SizeF GetPreferredSize(IGraphicsProvider gp)
    Parameters
    Type Name Description
    IGraphicsProvider gp
    Returns
    Type
    System.Drawing.SizeF
    Overrides
    BarItemRenderer.GetPreferredSize(IGraphicsProvider)

    GetPressedItemDarktColor(VisualStyle)

    Declaration
    protected override Color GetPressedItemDarktColor(VisualStyle style)
    Parameters
    Type Name Description
    VisualStyle style
    Returns
    Type
    System.Drawing.Color
    Overrides
    BarItemRenderer.GetPressedItemDarktColor(VisualStyle)

    GetPressedItemLightColor(VisualStyle)

    Declaration
    protected override Color GetPressedItemLightColor(VisualStyle style)
    Parameters
    Type Name Description
    VisualStyle style
    Returns
    Type
    System.Drawing.Color
    Overrides
    BarItemRenderer.GetPressedItemLightColor(VisualStyle)

    GetTextAndImageRect(Graphics, Rectangle)

    Declaration
    protected override RectangleF GetTextAndImageRect(Graphics g, Rectangle clippingRect)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle clippingRect
    Returns
    Type
    System.Drawing.RectangleF
    Overrides
    BarItemRenderer.GetTextAndImageRect(Graphics, Rectangle)

    HideDropDown()

    Declaration
    protected override void HideDropDown()
    Overrides
    BarItemRenderer.HideDropDown()

    IsMouseDown()

    Declaration
    protected override bool IsMouseDown()
    Returns
    Type
    System.Boolean
    Overrides
    BarItemRenderer.IsMouseDown()

    IsRelatedControl(Control)

    Declaration
    public virtual bool IsRelatedControl(Control ctl)
    Parameters
    Type Name Description
    System.Windows.Forms.Control ctl
    Returns
    Type
    System.Boolean

    IsShowing()

    Declaration
    public bool IsShowing()
    Returns
    Type
    System.Boolean

    KeyboardMessage(ref Message)

    Declaration
    public virtual bool KeyboardMessage(ref Message m)
    Parameters
    Type Name Description
    System.Windows.Forms.Message m
    Returns
    Type
    System.Boolean

    OnMouseDown(Point)

    Declaration
    public override void OnMouseDown(Point pointMouseDown)
    Parameters
    Type Name Description
    System.Drawing.Point pointMouseDown
    Overrides
    BarItemRenderer.OnMouseDown(Point)

    OnMouseMove(Point)

    Declaration
    public override void OnMouseMove(Point pointMouseMove)
    Parameters
    Type Name Description
    System.Drawing.Point pointMouseMove
    Overrides
    BarItemRenderer.OnMouseMove(Point)

    OnMouseUp(Point)

    Declaration
    public override void OnMouseUp(Point pointMouseUp)
    Parameters
    Type Name Description
    System.Drawing.Point pointMouseUp
    Overrides
    BarItemRenderer.OnMouseUp(Point)

    ShouldDrawDropDown()

    Declaration
    protected bool ShouldDrawDropDown()
    Returns
    Type
    System.Boolean

    ShouldDrawImage()

    Declaration
    protected override bool ShouldDrawImage()
    Returns
    Type
    System.Boolean
    Overrides
    BarItemRenderer.ShouldDrawImage()

    ShouldDrawText()

    Declaration
    public override bool ShouldDrawText()
    Returns
    Type
    System.Boolean
    Overrides
    BarItemRenderer.ShouldDrawText()

    ShowChildrenUI(ParentBarItem, IPopupParent, Queue)

    Declaration
    public virtual IPopupChild ShowChildrenUI(ParentBarItem item, IPopupParent parentUI, Queue pbiQueue)
    Parameters
    Type Name Description
    ParentBarItem item
    IPopupParent parentUI
    System.Collections.Queue pbiQueue
    Returns
    Type
    IPopupChild

    ShowDropDown(Queue)

    Declaration
    protected override bool ShowDropDown(Queue pbiQueue)
    Parameters
    Type Name Description
    System.Collections.Queue pbiQueue
    Returns
    Type
    System.Boolean
    Overrides
    BarItemRenderer.ShowDropDown(Queue)

    Implements

    IBarItemRenderer
    System.IDisposable
    IDropDownItem
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved