WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ToolStripGallery

    Show / Hide Table of Contents

    Class ToolStripGallery

    Inheritance
    System.Object
    ToolStripGallery
    Implements
    INativeMessageFilter
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class ToolStripGallery : ToolStripItem, INativeMessageFilter

    Constructors

    ToolStripGallery()

    Declaration
    public ToolStripGallery()

    ToolStripGallery(ObservableList<ToolStripGalleryItem>, Boolean)

    Declaration
    protected ToolStripGallery(ObservableList<ToolStripGalleryItem> items, bool bCreateDropDown)
    Parameters
    Type Name Description
    ObservableList<ToolStripGalleryItem> items
    System.Boolean bCreateDropDown

    Properties

    BorderStyle

    Declaration
    public ToolstripGalleryBorderStyle BorderStyle { get; set; }
    Property Value
    Type Description
    ToolstripGalleryBorderStyle

    CaptionText

    Declaration
    public string CaptionText { get; set; }
    Property Value
    Type Description
    System.String

    CheckedItem

    Gets or sets checked item.

    Declaration
    public ToolStripGalleryItem CheckedItem { get; set; }
    Property Value
    Type Description
    ToolStripGalleryItem

    CheckOnClick

    Gets or sets if item must be checked after user clicks on it.

    Declaration
    public bool CheckOnClick { get; set; }
    Property Value
    Type Description
    System.Boolean

    Dimensions

    Declaration
    public Size Dimensions { get; set; }
    Property Value
    Type Description
    System.Drawing.Size

    DisabledItem

    Declaration
    public ToolStripGalleryItem DisabledItem { get; }
    Property Value
    Type Description
    ToolStripGalleryItem

    DropDownDimensions

    Declaration
    public Size DropDownDimensions { get; set; }
    Property Value
    Type Description
    System.Drawing.Size

    DropDownMinimumSize

    Declaration
    public Size DropDownMinimumSize { get; set; }
    Property Value
    Type Description
    System.Drawing.Size

    FitToSize

    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
    Type Description
    System.Boolean

    Font

    Gets or sets the System.Drawing.Font value for the ToolStripGallery .

    Declaration
    public override Font Font { get; set; }
    Property Value
    Type Description
    System.Drawing.Font

    GalleryItem

    Gets the current highlighted ToolStripGalleryItem in the ToolStripGallery.

    Declaration
    public ToolStripGalleryItem GalleryItem { get; set; }
    Property Value
    Type Description
    ToolStripGalleryItem

    GalleryItemCheckedColor

    Gets/Sets the Gallery Item Checked color.

    Declaration
    public Color GalleryItemCheckedColor { get; set; }
    Property Value
    Type Description
    System.Drawing.Color

    GalleryItemHoverColor

    Gets/Sets the Gallery Item Hover color.

    Declaration
    public Color GalleryItemHoverColor { get; set; }
    Property Value
    Type Description
    System.Drawing.Color

    GalleryItemSelectedColor

    Gets/Sets the Gallery Item Selected color.

    Declaration
    public Color GalleryItemSelectedColor { get; set; }
    Property Value
    Type Description
    System.Drawing.Color

    ImageList

    Declaration
    public ImageList ImageList { get; set; }
    Property Value
    Type Description
    System.Windows.Forms.ImageList

    ItemBackColor

    Declaration
    public Color ItemBackColor { get; set; }
    Property Value
    Type Description
    System.Drawing.Color

    ItemDisplayStyle

    Declaration
    public ToolStripItemDisplayStyle ItemDisplayStyle { get; set; }
    Property Value
    Type Description
    System.Windows.Forms.ToolStripItemDisplayStyle

    ItemImageSize

    Declaration
    public Size ItemImageSize { get; set; }
    Property Value
    Type Description
    System.Drawing.Size

    ItemMargin

    Declaration
    public Padding ItemMargin { get; set; }
    Property Value
    Type Description
    System.Windows.Forms.Padding

    ItemPadding

    Declaration
    public Padding ItemPadding { get; set; }
    Property Value
    Type Description
    System.Windows.Forms.Padding

    Items

    Declaration
    public ObservableList<ToolStripGalleryItem> Items { get; }
    Property Value
    Type Description
    ObservableList<ToolStripGalleryItem>

    ItemSize

    Declaration
    public Size ItemSize { get; set; }
    Property Value
    Type Description
    System.Drawing.Size

    ItemTextImageRelation

    Declaration
    public TextImageRelation ItemTextImageRelation { get; set; }
    Property Value
    Type Description
    System.Windows.Forms.TextImageRelation

    ScrollerType

    Declaration
    public ToolStripGalleryScrollerType ScrollerType { get; set; }
    Property Value
    Type Description
    ToolStripGalleryScrollerType

    SelectedItem

    Gets the current highlighted ToolStripGalleryItem in the ToolStripGallery.

    Declaration
    public ToolStripGalleryItem SelectedItem { get; }
    Property Value
    Type Description
    ToolStripGalleryItem

    ShowCaption

    Declaration
    public bool ShowCaption { get; set; }
    Property Value
    Type Description
    System.Boolean

    ShowToolTip

    Gets or Sets the ToolTip visiblity for Gallery

    Declaration
    public bool ShowToolTip { get; set; }
    Property Value
    Type Description
    System.Boolean

    Methods

    GetPreferredSize(Size)

    Declaration
    public override Size GetPreferredSize(Size constrainingSize)
    Parameters
    Type Name Description
    System.Drawing.Size constrainingSize
    Returns
    Type Description
    System.Drawing.Size

    OnBoundsChanged()

    Declaration
    protected override void OnBoundsChanged()

    OnGalleryItemClicked(ToolStripGalleryItemEventArgs)

    Declaration
    protected virtual void OnGalleryItemClicked(ToolStripGalleryItemEventArgs args)
    Parameters
    Type Name Description
    ToolStripGalleryItemEventArgs args

    OnGalleryMouseLeave(ToolStripGalleryItemEventArgs)

    Declaration
    protected virtual void OnGalleryMouseLeave(ToolStripGalleryItemEventArgs args)
    Parameters
    Type Name Description
    ToolStripGalleryItemEventArgs args

    OnGalleryMouseMove(ToolStripGalleryItemEventArgs)

    Declaration
    protected virtual void OnGalleryMouseMove(ToolStripGalleryItemEventArgs args)
    Parameters
    Type Name Description
    ToolStripGalleryItemEventArgs args

    OnLayout(LayoutEventArgs)

    Declaration
    protected override void OnLayout(LayoutEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.LayoutEventArgs e

    OnMouseLeave(EventArgs)

    Declaration
    protected override void OnMouseLeave(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnMouseMove(MouseEventArgs)

    Highlights items.

    Declaration
    protected override void OnMouseMove(MouseEventArgs mea)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs mea

    OnPaint(PaintEventArgs)

    Declaration
    protected override void OnPaint(PaintEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.PaintEventArgs e

    OnParentChanged(ToolStrip, ToolStrip)

    Declaration
    protected override void OnParentChanged(ToolStrip oldParent, ToolStrip newParent)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip oldParent
    System.Windows.Forms.ToolStrip newParent

    PerformClick(ToolStripGalleryItem)

    Declaration
    public void PerformClick(ToolStripGalleryItem item)
    Parameters
    Type Name Description
    ToolStripGalleryItem item

    ResetDimensions()

    Resets Dimensions to its default value.

    Declaration
    protected void ResetDimensions()

    ResetDropDownMinimumSize()

    Declaration
    protected void ResetDropDownMinimumSize()

    ResetItemImageSize()

    Declaration
    protected void ResetItemImageSize()

    ResetItemMargin()

    Declaration
    protected void ResetItemMargin()

    ResetItemPadding()

    Declaration
    protected void ResetItemPadding()

    ResetItemSize()

    Declaration
    protected void ResetItemSize()

    SetBounds(Rectangle)

    Declaration
    protected override void SetBounds(Rectangle bounds)
    Parameters
    Type Name Description
    System.Drawing.Rectangle bounds

    ShouldSerializeDimensions()

    Declaration
    protected bool ShouldSerializeDimensions()
    Returns
    Type Description
    System.Boolean

    ShouldSerializeDropDownMinimumSize()

    Declaration
    protected bool ShouldSerializeDropDownMinimumSize()
    Returns
    Type Description
    System.Boolean

    ShouldSerializeItemImageSize()

    Declaration
    protected bool ShouldSerializeItemImageSize()
    Returns
    Type Description
    System.Boolean

    ShouldSerializeItemMargin()

    Declaration
    protected bool ShouldSerializeItemMargin()
    Returns
    Type Description
    System.Boolean

    ShouldSerializeItemPadding()

    Declaration
    protected bool ShouldSerializeItemPadding()
    Returns
    Type Description
    System.Boolean

    ShouldSerializeItemSize()

    Declaration
    protected bool ShouldSerializeItemSize()
    Returns
    Type Description
    System.Boolean

    Events

    DropDownClosed

    Declaration
    public event ToolStripDropDownClosedEventHandler DropDownClosed
    Event Type
    Type Description
    System.Windows.Forms.ToolStripDropDownClosedEventHandler

    DropDownOpening

    Declaration
    public event CancelEventHandler DropDownOpening
    Event Type
    Type Description
    System.ComponentModel.CancelEventHandler

    GalleryItemClicked

    Declaration
    public event ToolStripGalleryItemEventHandler GalleryItemClicked
    Event Type
    Type Description
    ToolStripGalleryItemEventHandler

    GalleryMouseLeave

    Declaration
    public event ToolStripGalleryItemEventHandler GalleryMouseLeave
    Event Type
    Type Description
    ToolStripGalleryItemEventHandler

    GalleryMouseMove

    Declaration
    public event ToolStripGalleryItemEventHandler GalleryMouseMove
    Event Type
    Type Description
    ToolStripGalleryItemEventHandler

    Explicit Interface Implementations

    INativeMessageFilter.ProcessMessage(ref Message)

    Declaration
    bool INativeMessageFilter.ProcessMessage(ref Message m)
    Parameters
    Type Name Description
    System.Windows.Forms.Message m
    Returns
    Type Description
    System.Boolean

    Implements

    INativeMessageFilter
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved