Inheritance
System.Object
DropDownBarItemRenderer
Implements
System.IDisposable
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 class DropDownBarItemRenderer : BarItemRenderer, IBarItemRenderer, IDisposable, IDropDownItem
Constructors
Declaration
public DropDownBarItemRenderer(IBarRenderer parent)
Parameters
Fields
Declaration
protected IPopupChild popupChild
Field Value
Declaration
protected IPopupParent popupParent
Field Value
Properties
Declaration
public override bool Active { get; set; }
Property Value
Overrides
Declaration
public override bool ShowingDropDown { get; set; }
Property Value
Overrides
Methods
Declaration
public virtual void AfterChildClosing()
Declaration
public virtual void ChildClosing(IPopupChild childUI, PopupCloseType popupCloseType)
Parameters
Declaration
protected override void DrawBackground(DrawToolbarItemEventArgs drawItemInfo, bool useThemes)
Parameters
Overrides
Declaration
protected override void DrawBorders(DrawToolbarItemEventArgs drawItemInfo, bool useThemes)
Parameters
Overrides
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
Declaration
protected override Color GetBGColor()
Returns
Type |
System.Drawing.Color |
Overrides
Declaration
protected override Color GetBGColor2()
Returns
Type |
System.Drawing.Color |
Overrides
Declaration
public virtual Point[] GetBorderOverlapCue(PopupRelativeAlignment rAlign)
Parameters
Returns
Type |
System.Drawing.Point[] |
Declaration
protected override RectangleF GetDrawingBounds()
Returns
Type |
System.Drawing.RectangleF |
Overrides
Declaration
protected override ItemState GetDrawState()
Returns
Overrides
Declaration
protected PopupRelativeAlignment GetFirstAlignPreference()
Returns
Declaration
protected override Color GetForeColor(DrawItemState state)
Parameters
Type |
Name |
Description |
System.Windows.Forms.DrawItemState |
state |
|
Returns
Type |
System.Drawing.Color |
Overrides
Declaration
protected override Color GetForeColorDefault(DrawItemState state)
Parameters
Type |
Name |
Description |
System.Windows.Forms.DrawItemState |
state |
|
Returns
Type |
System.Drawing.Color |
Overrides
Declaration
protected override Color GetHighlightItemLightColor(VisualStyle style)
Parameters
Returns
Type |
System.Drawing.Color |
Overrides
Declaration
protected virtual PopupRelativeAlignment GetLastAlignPreference()
Returns
Declaration
public Point GetLocationForPopupAlignment(PopupRelativeAlignment prevAlign, out PopupRelativeAlignment newAlign)
Parameters
Returns
Type |
System.Drawing.Point |
Declaration
public Point GetLocationForPopupAlignment(PopupRelativeAlignment prevAlign, out PopupRelativeAlignment newAlign, bool bIsRightToLeft)
Parameters
Returns
Type |
System.Drawing.Point |
Declaration
public Control GetPopupParentControl()
Returns
Type |
System.Windows.Forms.Control |
Declaration
public override SizeF GetPreferredSize(IGraphicsProvider gp)
Parameters
Returns
Type |
System.Drawing.SizeF |
Overrides
Declaration
protected override Color GetPressedItemDarktColor(VisualStyle style)
Parameters
Returns
Type |
System.Drawing.Color |
Overrides
Declaration
protected override Color GetPressedItemLightColor(VisualStyle style)
Parameters
Returns
Type |
System.Drawing.Color |
Overrides
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
Declaration
protected override void HideDropDown()
Overrides
Declaration
protected override bool IsMouseDown()
Returns
Overrides
Declaration
public virtual bool IsRelatedControl(Control ctl)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Control |
ctl |
|
Returns
Declaration
Returns
Declaration
public virtual bool KeyboardMessage(ref Message m)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Message |
m |
|
Returns
Declaration
public override void OnMouseDown(Point pointMouseDown)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
pointMouseDown |
|
Overrides
Declaration
public override void OnMouseMove(Point pointMouseMove)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
pointMouseMove |
|
Overrides
Declaration
public override void OnMouseUp(Point pointMouseUp)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
pointMouseUp |
|
Overrides
Declaration
protected bool ShouldDrawDropDown()
Returns
Declaration
protected override bool ShouldDrawImage()
Returns
Overrides
Declaration
public override bool ShouldDrawText()
Returns
Overrides
Declaration
public virtual IPopupChild ShowChildrenUI(ParentBarItem item, IPopupParent parentUI, Queue pbiQueue)
Parameters
Returns
Declaration
protected override bool ShowDropDown(Queue pbiQueue)
Parameters
Type |
Name |
Description |
System.Collections.Queue |
pbiQueue |
|
Returns
Overrides
Implements
System.IDisposable