New to Telerik UI for WinForms? Start a free 30-day trial

Holds the raster or SVG image and application data used to create a toolbar action button.

The visual element copies these values when it is created; changing this item does not update an existing button.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class ToolbarActionDataItem

Inheritance: objectToolbarActionDataItem

Constructors

Initializes an action with a raster image and application data.

C#
public ToolbarActionDataItem(Image image, object userData)
Parameters:imageImage

The image assigned to the toolbar button.

userDataobject

Application-defined data associated with the action.

Initializes an action with a raster image.

C#
public ToolbarActionDataItem(Image image)
Parameters:imageImage

The image assigned to the toolbar button.

Initializes an action with an SVG image and application data.

C#
public ToolbarActionDataItem(RadSvgImage svgImage, object userData)
Parameters:svgImageRadSvgImage

The SVG image assigned to the toolbar button.

userDataobject

Application-defined data associated with the action.

Initializes an action with an SVG image.

C#
public ToolbarActionDataItem(RadSvgImage svgImage)
Parameters:svgImageRadSvgImage

The SVG image assigned to the toolbar button.

Properties

Gets or sets the raster image copied to the toolbar button.

C#
public Image Image { get; set; }

Gets or sets the SVG image copied to the toolbar button.

C#
public RadSvgImage SvgImage { get; set; }

Gets or sets application-defined data copied to the button's Tag and included with its click event data.

C#
public object UserData { get; set; }