Class ToolStripGallery
Inheritance
System.Object
ToolStripGallery
Assembly: Syncfusion.Tools.Windows.dll
public class ToolStripGallery : ToolStripItem, INativeMessageFilter
Constructors
Declaration
public ToolStripGallery()
Declaration
protected ToolStripGallery(ObservableList<ToolStripGalleryItem> items, bool bCreateDropDown)
Parameters
Properties
Declaration
public ToolstripGalleryBorderStyle BorderStyle { get; set; }
Property Value
CaptionText
Declaration
public string CaptionText { get; set; }
Property Value
Gets or sets checked item.
Declaration
public ToolStripGalleryItem CheckedItem { get; set; }
Property Value
Gets or sets if item must be checked after user clicks on it.
Declaration
public bool CheckOnClick { get; set; }
Property Value
Declaration
public Size Dimensions { get; set; }
Property Value
Declaration
public ToolStripGalleryItem DisabledItem { get; }
Property Value
Declaration
public Size DropDownDimensions { get; set; }
Property Value
Declaration
public Size DropDownMinimumSize { get; set; }
Property Value
Gets or Sets value indicating whether toolstripgallary can Fit to its parent height. This property will take effect when AutoSize is enabled
Declaration
public bool FitToSize { get; set; }
Property Value
Declaration
public override Font Font { get; set; }
Property Value
Gets the current highlighted ToolStripGalleryItem in the ToolStripGallery.
Declaration
public ToolStripGalleryItem GalleryItem { get; set; }
Property Value
Gets/Sets the Gallery Item Checked color.
Declaration
public Color GalleryItemCheckedColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets/Sets the Gallery Item Hover color.
Declaration
public Color GalleryItemHoverColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets/Sets the Gallery Item Selected color.
Declaration
public Color GalleryItemSelectedColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Declaration
public ImageList ImageList { get; set; }
Property Value
Type |
System.Windows.Forms.ImageList |
Declaration
public Color ItemBackColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Declaration
public ToolStripItemDisplayStyle ItemDisplayStyle { get; set; }
Property Value
Type |
System.Windows.Forms.ToolStripItemDisplayStyle |
Declaration
public Size ItemImageSize { get; set; }
Property Value
Declaration
public Padding ItemMargin { get; set; }
Property Value
Type |
System.Windows.Forms.Padding |
Declaration
public Padding ItemPadding { get; set; }
Property Value
Type |
System.Windows.Forms.Padding |
Declaration
public ObservableList<ToolStripGalleryItem> Items { get; }
Property Value
Declaration
public Size ItemSize { get; set; }
Property Value
ItemTextImageRelation
Declaration
public TextImageRelation ItemTextImageRelation { get; set; }
Property Value
Type |
System.Windows.Forms.TextImageRelation |
Declaration
public ToolStripGalleryScrollerType ScrollerType { get; set; }
Property Value
Gets the current highlighted ToolStripGalleryItem in the ToolStripGallery.
Declaration
public ToolStripGalleryItem SelectedItem { get; }
Property Value
Declaration
public bool ShowCaption { get; set; }
Property Value
Gets or Sets the ToolTip visiblity for Gallery
Declaration
public bool ShowToolTip { get; set; }
Property Value
Methods
Declaration
public override Size GetPreferredSize(Size constrainingSize)
Parameters
Type |
Name |
Description |
System.Drawing.Size |
constrainingSize |
|
Returns
Declaration
protected override void OnBoundsChanged()
Declaration
protected virtual void OnGalleryItemClicked(ToolStripGalleryItemEventArgs args)
Parameters
Declaration
protected virtual void OnGalleryMouseLeave(ToolStripGalleryItemEventArgs args)
Parameters
Declaration
protected virtual void OnGalleryMouseMove(ToolStripGalleryItemEventArgs args)
Parameters
Declaration
protected override void OnLayout(LayoutEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.LayoutEventArgs |
e |
|
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected override void OnMouseMove(MouseEventArgs mea)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
mea |
|
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.PaintEventArgs |
e |
|
Declaration
protected override void OnParentChanged(ToolStrip oldParent, ToolStrip newParent)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStrip |
oldParent |
|
System.Windows.Forms.ToolStrip |
newParent |
|
Declaration
public void PerformClick(ToolStripGalleryItem item)
Parameters
Resets Dimensions to its default value.
Declaration
protected void ResetDimensions()
Declaration
protected void ResetDropDownMinimumSize()
Declaration
protected void ResetItemImageSize()
Declaration
protected void ResetItemMargin()
Declaration
protected void ResetItemPadding()
Declaration
protected void ResetItemSize()
Declaration
protected override void SetBounds(Rectangle bounds)
Parameters
Type |
Name |
Description |
System.Drawing.Rectangle |
bounds |
|
Declaration
protected bool ShouldSerializeDimensions()
Returns
Declaration
protected bool ShouldSerializeDropDownMinimumSize()
Returns
Declaration
protected bool ShouldSerializeItemImageSize()
Returns
Declaration
protected bool ShouldSerializeItemMargin()
Returns
Declaration
protected bool ShouldSerializeItemPadding()
Returns
Declaration
protected bool ShouldSerializeItemSize()
Returns
Events
Declaration
public event ToolStripDropDownClosedEventHandler DropDownClosed
Event Type
Type |
System.Windows.Forms.ToolStripDropDownClosedEventHandler |
Declaration
public event CancelEventHandler DropDownOpening
Event Type
Type |
System.ComponentModel.CancelEventHandler |
Declaration
public event ToolStripGalleryItemEventHandler GalleryItemClicked
Event Type
Declaration
public event ToolStripGalleryItemEventHandler GalleryMouseLeave
Event Type
Declaration
public event ToolStripGalleryItemEventHandler GalleryMouseMove
Event Type
Explicit Interface Implementations
Declaration
bool INativeMessageFilter.ProcessMessage(ref Message m)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Message |
m |
|
Returns
Implements