Class ToolStripExImageProvider
A class which contains the extended property for ToolstripItems.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class ToolStripExImageProvider : IExtenderProvider, IDisposable
Constructors
ToolStripExImageProvider(ToolStripEx)
Creates a instance for the class ToolStripExImageProvider
Declaration
public ToolStripExImageProvider(ToolStripEx toolStrip)
Parameters
Type | Name | Description |
---|---|---|
ToolStripEx | toolStrip |
Properties
LargeImageList
Gets/Sets the ImageListAdv for large images of the ToolStripItem ImageListAdv
Declaration
public ImageListAdv LargeImageList { get; set; }
Property Value
Type | Description |
---|---|
ImageListAdv | The default value is Null. |
MediumImageList
Gets or sets the ImageListAdv for medium images of the System.Windows.Forms.ToolStripItem. This images are used to render the item when the simplified layout is enabled for RibbonControlAdv.
Declaration
public ImageListAdv MediumImageList { get; set; }
Property Value
Type | Description |
---|---|
ImageListAdv | The default value is Null. |
SmallImageList
Gets/Sets the ImageListAdv for small images of the ToolStripItemImageListAdv
Declaration
public ImageListAdv SmallImageList { get; set; }
Property Value
Type | Description |
---|---|
ImageListAdv | The default value is Null. |
Methods
CanExtend(Object)
Specifies whether this object can provide its extender properties to the specified object.
Declaration
public bool CanExtend(object extendee)
Parameters
Type | Name | Description |
---|---|---|
System.Object | extendee | The System.Object to receive the extender properties. |
Returns
Type | Description |
---|---|
System.Boolean | true if this object can provide extender properties to the specified object |
Dispose()
Calls the Dispose method to dispose the object.
Declaration
public void Dispose()
GetLargeItemImage(Object)
Gets the large image of the ToolStripItem.
Declaration
public Image GetLargeItemImage(object control)
Parameters
Type | Name | Description |
---|---|---|
System.Object | control | ToolstripItem. |
Returns
Type | Description |
---|---|
System.Drawing.Image | Large Image of the control |
GetMediumItemImage(Object)
Gets the medium image of the ToolStripItem.
Declaration
public Image GetMediumItemImage(object control)
Parameters
Type | Name | Description |
---|---|---|
System.Object | control | ToolstripItem. |
Returns
Type | Description |
---|---|
System.Drawing.Image | Medium Image of the control. |
GetSmallItemImage(Object)
Gets the small image of the ToolStripItem.
Declaration
public Image GetSmallItemImage(object control)
Parameters
Type | Name | Description |
---|---|---|
System.Object | control | ToolstripItem. |
Returns
Type | Description |
---|---|
System.Drawing.Image | Small Image of the control |
SetLargeItemImage(Object, Int32)
Sets the large image of the ToolStripItem based on LargeImageList
Declaration
public void SetLargeItemImage(object control, int index)
Parameters
Type | Name | Description |
---|---|---|
System.Object | control | ToolstripItem |
System.Int32 | index | Retrieves the images from LargeImageList based on its value |
Remarks
"Helps to retrieves the images based on ImageListAdv, so it necessary to assign ImageListAdv to LargeImageList"
SetMediumItemImage(Object, Int32)
Sets the medium image of the ToolStripItem based on MediumImageList
Declaration
public void SetMediumItemImage(object control, int index)
Parameters
Type | Name | Description |
---|---|---|
System.Object | control | ToolstripItem. |
System.Int32 | index | Retrieves the images from MediumImageList based on its value. |
Remarks
"Helps to retrieves the images based on ImageListAdv, so it necessary to assign ImageListAdv to MediumImageList"
SetSmallItemImage(Object, Int32)
Sets the large image of the ToolStripItem based on SmallImageList
Declaration
public void SetSmallItemImage(object control, int index)
Parameters
Type | Name | Description |
---|---|---|
System.Object | control | ToolstripItem |
System.Int32 | index | Retrieves the images from SmallImageList based on its value |
Remarks
"Helps to retrieves the images based on ImageListAdv, so it necessary to assign ImageListAdv to SmallImageList"